Part Number Hot Search : 
PN2933 HV264 AS170 61LV1 OP27EP 37N06 BBY5702 C8225
Product Description
Full Text Search
 

To Download R0E00008AKCE00EP63 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 REJ10J2023-0100
E8a Emulator
Additional Document for User's Manual
Notes on Connecting the H8/300H Super Low Power Series
Renesas Microcomputer Development Environment System H8 Family / H8/300H Super Low Power Series R0E00008AKCE00EP63
H8/38076RF, H8/38086RF, H8/38776F, H8/38602RF, H8/38099F, H8/38799F, H8/38524F, H8/38537F, and H8/38704F
Rev.1.00 Revision Date: Aug. 03, 2009
Rev. 1.00 Aug. 03, 2009 Page ii of vi REJ10J2023-0100
Notes regarding these materials
1. This document is provided for reference purposes only so that Renesas customers may select the appropriate Renesas products for their use. Renesas neither makes warranties or representations with respect to the accuracy or completeness of the information contained in this document nor grants any license to any intellectual property rights or any other rights of Renesas or any third party with respect to the information in this document. 2. Renesas shall have no liability for damages or infringement of any intellectual property or other rights arising out of the use of any information in this document, including, but not limited to, product data, diagrams, charts, programs, algorithms, and application circuit examples. 3. You should not use the products or the technology described in this document for the purpose of military applications such as the development of weapons of mass destruction or for the purpose of any other military use. When exporting the products or technology described herein, you should follow the applicable export control laws and regulations, and procedures required by such laws and regulations. 4. All information included in this document such as product data, diagrams, charts, programs, algorithms, and application circuit examples, is current as of the date this document is issued. Such information, however, is subject to change without any prior notice. Before purchasing or using any Renesas products listed in this document, please confirm the latest product information with a Renesas sales office. Also, please pay regular and careful attention to additional and different information to be disclosed by Renesas such as that disclosed through our website. (http://www.renesas.com ) 5. Renesas has used reasonable care in compiling the information included in this document, but Renesas assumes no liability whatsoever for any damages incurred as a result of errors or omissions in the information included in this document. 6. When using or otherwise relying on the information in this document, you should evaluate the information in light of the total system before deciding about the applicability of such information to the intended application. Renesas makes no representations, warranties or guaranties regarding the suitability of its products for any particular application and specifically disclaims any liability arising out of the application and use of the information in this document or Renesas products. 7. With the exception of products specified by Renesas as suitable for automobile applications, Renesas products are not designed, manufactured or tested for applications or otherwise in systems the failure or malfunction of which may cause a direct threat to human life or create a risk of human injury or which require especially high quality and reliability such as safety systems, or equipment or systems for transportation and traffic, healthcare, combustion control, aerospace and aeronautics, nuclear power, or undersea communication transmission. If you are considering the use of our products for such purposes, please contact a Renesas sales office beforehand. Renesas shall have no liability for damages arising out of the uses set forth above. 8. Notwithstanding the preceding paragraph, you should not use Renesas products for the purposes listed below: (1) artificial life support devices or systems (2) surgical implantations (3) healthcare intervention (e.g., excision, administration of medication, etc.) (4) any other purposes that pose a direct threat to human life Renesas shall have no liability for damages arising out of the uses set forth in the above and purchasers who elect to use Renesas products in any of the foregoing applications shall indemnify and hold harmless Renesas Technology Corp., its affiliated companies and their officers, directors, and employees against any and all damages arising out of such applications. 9. You should use the products described herein within the range specified by Renesas, especially with respect to the maximum rating, operating supply voltage range, movement power voltage range, heat radiation characteristics, installation and other product characteristics. Renesas shall have no liability for malfunctions or damages arising out of the use of Renesas products beyond such specified ranges. 10. Although Renesas endeavors to improve the quality and reliability of its products, IC products have specific characteristics such as the occurrence of failure at a certain rate and malfunctions under certain use conditions. Please be sure to implement safety measures to guard against the possibility of physical injury, and injury or damage caused by fire in the event of the failure of a Renesas product, such as safety design for hardware and software including but not limited to redundancy, fire control and malfunction prevention, appropriate treatment for aging degradation or any other applicable measures. Among others, since the evaluation of microcomputer software alone is very difficult, please evaluate the safety of the final products or system manufactured by you. 11. In case Renesas products listed in this document are detached from the products to which the Renesas products are attached or affixed, the risk of accident such as swallowing by infants and small children is very high. You should implement safety measures so that Renesas products may not be easily detached from your products. Renesas shall have no liability for damages arising out of such detachment. 12. This document may not be reproduced or duplicated, in any form, in whole or in part, without prior written approval from Renesas. 13. Please contact a Renesas sales office if you have any questions regarding the information contained in this document, Renesas semiconductor products, or if you have any other inquiries.
Rev. 1.00 Aug. 03, 2009 Page iii of vi REJ10J2023-0100
Rev. 1.00 Aug. 03, 2009 Page iv of vi REJ10J2023-0100
Contents
Notes on Connecting the H8/38076F, H8/38086RF, and H8/38776F.................1 Section 1 Inside the E8a Emulator User's Manual ............................................3 Section 2 Connecting the Emulator with the User System ................................5 Section 3 Pin Assignments of the E8a Connector .............................................7 Section 4 Example of Emulator Connection......................................................9 Section 5 Differences between the MCUs (H8/38076RF, H8/38086RF, and H8/38776F) and the Emulator ...........................................................15 Notes on Connecting the H8/38602RF ................................................................1 Section 1 Inside the E8a Emulator User's Manual ............................................3 Section 2 Connecting the Emulator with the User System ................................3 Section 3 Pin Assignments of the E8a Connector .............................................5 Section 4 Example of Emulator Connection......................................................7 Section 5 Differences between the MCU (H8/38602RF) and the Emulator .....13 Notes on Connecting the H8/38099F and H8/38799F.........................................1 Section 1 Inside the E8a Emulator User's Manual ............................................3 Section 2 Connecting the Emulator with the User System ................................5 Section 3 Pin Assignments of the E8a Connector .............................................7 Section 4 Example of Emulator Connection......................................................9
Rev. 1.00 Aug. 03, 2009 Page v of viii REJ10J2023-0100
Section 5 Differences between the MCUs (H8/38099F and H8/38799F) and the Emulator................................................................................15 Notes on Connecting the H8/38524F ..................................................................1 Section 1 Inside the E8a Emulator User's Manual............................................3 Section 2 Connecting the Emulator with the User System................................5 Section 3 Pin Assignments of the E8a Connector .............................................7 Section 4 Example of Emulator Connection .....................................................9 Section 5 Differences between the MCUs (H8/38524F) and the Emulator................................................................................15 Notes on Connecting the H8/38537F ..................................................................1 Section 1 Inside the E8a Emulator User's Manual..............................................3 Section 2 Connecting the Emulator with the User System..................................5 Section 3 Pin Assignments of the E8a Connector ...............................................7 Section 4 Example of Emulator Connection .......................................................9 Section 5 Differences between the MCUs and the Emulator ..............................13 Notes on Connecting the H8/38704F ..................................................................1 Section 1 Inside the E8a Emulator User's Manual............................................3 Section 2 Connecting the Emulator with the User System................................5 Section 3 Pin Assignments of the E8a Connector .............................................7 Section 4 Example of Emulator Connection .....................................................9 Section 5 Differences between the MCU (H8/38704F) and the Emulator........13
Rev. 1.00 Aug. 03, 2009 Page vi of viii REJ10J2023-0100
Note: This manual applies to the following product versions of the E8a emulator software. Table E8a Emulator Software
E8a Emulator V.1.00 Release 00 or later (H8 Tiny/Super Low Power E8a Emulator V.1.00.00 or later)* Note: This is a revision of the debugger.
Rev. 1.00 Aug. 03, 2009 Page vii of viii REJ10J2023-0100
Rev. 1.00 Aug. 03, 2009 Page viii of viii REJ10J2023-0100
Notes on Connecting the H8/38076RF, H8/38086RF, and H8/38776F
Notes on Connecting the H8/38076RF, H8/38086RF, and H8/38776F
Rev. 1.00 Aug. 03, 2009 Page 1 of 26 REJ10J2023-0100
Notes on Connecting the H8/38076RF, H8/38086RF, and H8/38776F
Rev. 1.00 Aug. 03, 2009 Page 2 of 26 REJ10J2023-0100
Section 1 Inside the E8a Emulator User's Manual
Section 1 Inside the E8a Emulator User's Manual
The E8a emulator (hereafter referred to as E8a in this document) manual consists of two documents: the E8a User's Manual and the E8a Additional Document for User's Manual (this document). Be sure to read BOTH documents before using the E8a emulator. (1) E8a Emulator User's Manual The E8a Emulator User's Manual describes the hardware specifications and how to use the emulator debugger. E8a emulator hardware specifications Connecting the E8a emulator to the host computer or user system Operating the E8a emulator debugger Tutorial: From starting up the E8a emulator debugger to debugging (2) E8a Additional Document for User's Manual The E8a Additional Document for User's Manual describes content dependent on the MCUs and precautionary notes. Example of the E8a emulator connection or interface circuit necessary for designing the hardware Notes on using the E8a emulator Setting the E8a emulator debugger during startup
Rev. 1.00 Aug. 03, 2009 Page 3 of 26 REJ10J2023-0100
Section 1 Inside the E8a Emulator User's Manual
Rev. 1.00 Aug. 03, 2009 Page 4 of 26 REJ10J2023-0100
Section 2 Connecting the Emulator with the User System
Section 2 Connecting the Emulator with the User System
Before connecting an E8a emulator (hereafter referred to as emulator) with the user system, a connector must be installed in the user system so that a user system interface cable can be connected. When designing the user system, refer to the connector and recommended circuits shown in this manual. Before designing the user system, be sure to read the E8a emulator user's manual and the hardware manual for related MCUs. Table 2.1 shows the recommended connector for the emulator. Table 2.1 Recommended Connector
Type Number 2514-6002 Manufacturer 3M Limited Specifications 14-pin straight type
Connect pins 2, 4, 6, 10, 12, and 14 of the user system connector to GND firmly on the PCB. These pins are used as electrical GND and to monitor the connection of the user system connector. Note the pin assignments of the user system connector.
User system interface cable
User system connector
User system Pin 2
Pin 1
Figure 2.1 Connecting the User System Interface Cable to the User System
Rev. 1.00 Aug. 03, 2009 Page 5 of 26 REJ10J2023-0100
Section 2 Connecting the Emulator with the User System
Notes:
1. 2. 3.
The pin number assignments of the 14-pin connector differ from those of the E10A-USB emulator; however, the physical location is the same. Do not place any components within 3 mm of the connector. When the emulator is used in the [Program Flash] mode, connect the emulator similarly to the user system.
Rev. 1.00 Aug. 03, 2009 Page 6 of 26 REJ10J2023-0100
Section 3 Pin Assignments of the E8a Connector
Section 3 Pin Assignments of the E8a Connector
Figure 3.1 shows the pin assignments of the connector.
Pin No. 1 Pin 1 mark Connector 2 3 4 5 6 7 8 9 10 Top view Pin 1 mark 11 12 13 14 MCU Signal P16 Vss N.C. *2 Vss P37 Vss NMI# *1 Vcc N.C. *2 Vss P36 Vss RES# *1 Vss
Pin 2 Pin 1
Pin 14 Pin 13
Notes: 1. The symbol (#) means that the signal is active-low. 2. These pins are not used in the H8/300H Super Low Power series. Do not connect anything to these pins.
Figure 3.1 Pin Assignments of the Connector
Rev. 1.00 Aug. 03, 2009 Page 7 of 26 REJ10J2023-0100
Section 3 Pin Assignments of the E8a Connector
Rev. 1.00 Aug. 03, 2009 Page 8 of 26 REJ10J2023-0100
Section 4 Example of Emulator Connection
Section 4 Example of Emulator Connection
Figure 4.1 shows an example of emulator connection to the MCU.
Pulled-up at 4.7 k or more
Vcc Vcc
Vcc Vcc Vcc Vcc
NMI# P16 P36 P37 Vcc
NMI# P16 P36 P37 MCU
RES#
RES# TEST
Vss
User system Connector 14 pins with a 2.54-mm pitch
Figure 4.1 Example of Emulator Connection
Rev. 1.00 Aug. 03, 2009 Page 9 of 26 REJ10J2023-0100
Section 4 Example of Emulator Connection
Notes: 1. P16, P36, and P37 pins are used by the emulator. Pull up and connect the emulator and MCU pins.
MCU User system connector Vcc 4.7 k Pins 1, 5, and 11
P16, P36, and P37
Figure 4.2 Connection of Emulator and P16, P36, and P37 Pins 2. The NMI# signal is used for forced break control by the emulator. Connect the emulator and MCU pins directly. In debugging without forced break control, change the mode with the High-performance Embedded Workshop. Then, when the user logic is connected with the open-collector output buffer, the NMI# pin can be used in the user system (however, at power-on, the NMI# pin is used by the emulator).
MCU Vcc 4.7 k Pin 7 NMI# pin
When connected directly: User system connector
When the NMI# pin is used (forced break cannot be used): Vcc User system connector User logic * 4.7 k MCU
Pin 7 *Open-collector output buffer
NMI# pin
Figure 4.3 Connection of Emulator and NMI# Pin
Rev. 1.00 Aug. 03, 2009 Page 10 of 26 REJ10J2023-0100
Section 4 Example of Emulator Connection
3.
The RES# pin is used by the emulator. Create the following circuit so that reset input can be accepted from the emulator.
Vcc MCU
User system connector Pin 13
RES# pin
Figure 4.4 Example of a Reset Circuit 4. Connect Vss and Vcc with the Vss and Vcc of the MCU, respectively (within the guaranteed range of the microcomputer). When the power-supply mode is used, the power is supplied to the user system. Check that the power consumption or voltage of the user system is within the available range of E8a and avoid a problem such as closing of the power-supply circuit. Connect nothing with N.C. When the emulator is connected to the user system, ground the TEST pin of the MCU.
MCU
5. 6.
TEST
Figure 4.5 Emulator and the TEST Pin Note: When the emulator is connected, ADTRG#, which is also used as the TEST pin, cannot be used.
Rev. 1.00 Aug. 03, 2009 Page 11 of 26 REJ10J2023-0100
Section 4 Example of Emulator Connection
WARNING
In the power-supply mode, connect the emulator after checking that the power-supply circuit on the user system is not closed or the pin number assignments of the user system connector is correct. Failure to do so will result in a FIRE HAZARD and will damage the host computer, the emulator, and the user system.
7. Figures 4.6 shows the interface circuit in the E8a emulators. Use these figures as references when determining the pull-up resistance value.
Rev. 1.00 Aug. 03, 2009 Page 12 of 26 REJ10J2023-0100
Section 4 Example of Emulator Connection
User system connector Power-supply circuit (only used for the power-supply mode) Emulator control circuit 100 k x3 1 M 100 k Vcc 8
22
P16
1
74LVC125B 22
P36
11
74LVC125B 22 NMI#
7
74LVC125B Vcc 3.3 V
SN74LVC2T45 3.3 V Vcc 22 SN74LVC2T45 3.3 V Vcc 22 3.3 V 10 k SN74LVC2T45 2CS2462 10 k RES# 13 P37 5
Notes: 1. This figure omits the test circuits and pin numbers 3, 4, 9, and 14 for the user connector that are not used when H8/Tiny series is connected. 2. The power of 74LVC125B is supplied from Vcc in the user connector (or in the power-supply circuit during power-supply mode).
Figure 4.6 Interface Circuit in the E8a Emulator (Reference)
Rev. 1.00 Aug. 03, 2009 Page 13 of 26 REJ10J2023-0100
Section 4 Example of Emulator Connection
Rev. 1.00 Aug. 03, 2009 Page 14 of 26 REJ10J2023-0100
Section 5 Differences between the MCUs and the Emulator
Section 5 Differences between the MCUs (H8/38076RF, H8/38086RF, and H8/38776F) and the Emulator
This section describes the differences between the emulator and MCU operations. 1. [Emulator Setting] Dialog Box The [Emulator Setting] dialog box is provided for setting the items that need to be set when the emulator starts up (settings are saved in the session).
Figure 5.1 [Emulator Setting] Dialog Box
Rev. 1.00 Aug. 03, 2009 Page 15 of 26 REJ10J2023-0100
Section 5 Differences between the MCUs and the Emulator
To keep the [Emulator Setting] dialog box closed next time the emulator is started, check "Do not show this dialog box again." at the bottom of the [Emulator Setting] dialog box. You can open the [Emulator Setting] dialog box using either one of the following methods: After the emulator gets started, select Menu - [Setup] -> [Emulator] -> [Emulator Setting...]. Start the emulator while holding down the Ctrl key. After the emulator gets started and an error occurred, restart the emulator. When you check "Do not show this dialog box again.", the emulator doesn't supply power to the user system. To use this check box, start the emulator after turning on the power. 2. Emulator Mode The selection of the device, the specification of the mode, and the setting of the power supply are done in the [Emulator mode] page of the [Emulator Setting] dialog box. Device Select the device name in use from the [Device] combo box. The following items are selected in the [Mode] group box. Modes * Erase Flash and Connect This mode is used when there is no emulator program in the flash memory of the target device. In this mode, data of the flash memory of the target device is erased when the emulator is activated. Select this item when the emulator is firstly activated, the version of the emulator's software is updated, or the ID code is changed. * Keep Flash and Connect This mode is used when there is an emulator program in the flash memory of the target device. Enter the ID code specified above (`Erase Flash and Connect'). If an incorrect code is entered, all the programs on the flash memory will be erased. Note: When the emulator gets started in this mode after selecting "Do not show this dialog box again.", the initial values of the ID code is `0E8a' for the E8a emulator. If you use the ID code other than the initial value, do not use "Do not show this dialog box again.".
Rev. 1.00 Aug. 03, 2009 Page 16 of 26 REJ10J2023-0100
Section 5 Differences between the MCUs and the Emulator
* Program Flash This mode is used when the emulator is used for programming the flash memory. Debugging the program is disabled. To download the load module, register it in the workspace. Note: In the H8/Tiny or H8/Super Low Power device, the ID code is not entered in the Program Flash mode. Power Supply When [Power Target from emulator. (MAX 300mA)] is checked, power will be supplied to the user system up to 300 mA. Then select 3.3 V or 5.0 V according to the power voltage of the user system. 3. Emulator Activation and ID Code In the H8/Tiny- or H8/Super Low Power-series MCU, the [System Clock] and [ID Code] dialog boxes are set when the emulator is activated. Setting the system clock Enter the clock value input to the board in use. The initial value differs in each MCU.
Figure 5.2 [System Clock] Dialog Box Setting the ID code When the emulator is activated in the [Erase Flash and Connect] mode, enter any * hexadecimal four-digit ID code to be set (except for H'FFFF). The initial value is H'0E8A. When the emulator is activated in the [Keep Flash and Connect] mode, enter the correct ID code. If an incorrect ID code is entered, all the contents of the flash memory will be erased. In this case, restart the emulator in the [Erase Flash and Connect] mode.
Rev. 1.00 Aug. 03, 2009 Page 17 of 26 REJ10J2023-0100
Section 5 Differences between the MCUs and the Emulator
Figure 5.3 [ID Code] Dialog Box 4. When the emulator system is initiated, it initializes the general registers and part of the control registers as shown in table 5.1. Table 5.1 Register Initial Values at Emulator Power-On
Register PC ER0 to ER6 ER7 (SP) CCR Initial Value Reset vector value in the vector address table H'0000 H'FF80 H'80
5. Low-Power Mode During a user program break, the CPU operating frequency is forced to a system clock () for high-speed operation. 6. RES# Signal The MCU signals are only valid during user program execution started with clicking the GO or STEP-type button. During a user program break, the RES# signal is not sent to the MCUs. Note: Do not start user program execution or access the memory while control input signal (RES#) is being low. A TIMEOUT error will occur.
Rev. 1.00 Aug. 03, 2009 Page 18 of 26 REJ10J2023-0100
Section 5 Differences between the MCUs and the Emulator
7. System Control Register In the emulator, the internal I/O registers can be accessed from the [IO] window. However, be careful when accessing the system control register. The emulator saves the register value of the system control register at a break and returns the value when the user program is executed. Since this is done during a break, do not rewrite the system control register in the [IO] window. 8. Memory Access during Emulation If the memory contents are referenced or modified during emulation, realtime emulation cannot be performed because the user program is temporarily halted. 9. The emulator communicates with the MCUs by using the NMI#, RES#, P16, P36, and P37 pins. These pins cannot be used, however, the NMI# pin can be used by changing the setting of the [NMI signal] group box in the [Configuration] dialog box. 10. Sum Data Displayed in the Program Flash Mode Sum data, which is displayed in the `Program Flash' mode, is a value that data in the whole ROM areas has been added by byte (including data in the dedicated ROM area for the emulator). 11. Note on Executing the User Program The set value is rewritten since the emulator uses flash memory and watchdog timer registers during programming (Go, Step In, Step Out, or Step Over) of the flash memory. 12. The power consumed by the MCU can reach several milliamperes. This is because the user power supply drives ICs to make the communication signal level match the user-system power-supply voltage. The power consumed rises little during user program execution since the emulator does not perform communication; it rises more during a break. 13. Program Area for the Emulator Do not access a part of areas in the flash memory or the internal RAM since the emulator program uses these areas. If the contents of the program area for the emulator are changed, the emulator will not operate normally. In this case, restart the emulator with the Erase Flash and Connect mode.
Rev. 1.00 Aug. 03, 2009 Page 19 of 26 REJ10J2023-0100
Section 5 Differences between the MCUs and the Emulator
Table 5.2 Program Area for the E8a Emulator
MCU Name H8/38076RF H8/38086RF H8/38776F Program Area Emulator ROM: H'C000 to H'CFFF Internal RAM: H'F380 to H'F77F Vector, etc.: H'0002 to H'00097, H'CFF8 to H'CFF9
14. The emulator uses a two-word stack pointer for values stored on a user program break. Therefore, the stack area must accept two-word addresses. 15. Do not use an MCU that has been used for debugging. If the flash memory is rewritten many times, data may be lost due to retention problems after the emulator has been left for a few days and the data will be erased. If an error message is displayed, exchange the MCU for a new one. 16. Forced Break Function When the NMI# signal is used for a forced break in the emulator, the vector address of NMI# is rewritten by the emulator program. An error will occur if a file in the host computer and the flash memory contents are verified. Do not use the flash memory contents as the ROM data for the mask ROM after it has been saved. 17. Setting the Usage of the NMI# Signal In the [Configuration] dialog box, when the NMI# signal is changed as it is used in the user program, the vector address of NMI# is not recovered. Reload the user program. 18. Address Break Release Function In the [Configuration] dialog box, when the address break is changed as it is used in the user program, Break Condition 2 is disabled in this emulator. 19. Hardware Break Functions * In the H8/38076RF, H8/38086RF, H8/38776F E8a emulator, conditions of Break Condition 1,2 can be set. Table 5.3 lists the items that can be specified. Note: When the address break is used in the user program, Break Condition 2 is disabled.
Rev. 1.00 Aug. 03, 2009 Page 20 of 26 REJ10J2023-0100
Section 5 Differences between the MCUs and the Emulator
Table 5.3 Hardware Break Condition Specification Items
Items Address bus condition Data bus condition Description Breaks when the MCU address bus value matches the specified value. Breaks when the MCU data bus value matches the specified value. High or low byte or word can be specified as the access data size. Breaks in the read or write cycle.
Read or write condition
Table 5.4 lists the combinations of conditions that can be set in the [Break condition] dialog box. Table 5.4 Conditions Set in [Break condition] Dialog Box
Condition Dialog Box [Break condition 1] [Break condition 2] Address Bus Condition Data Condition Read or Write Condition
O O
O O
O O
Note: O: Can be set by checking the radio button in the dialog box.
Table 5.5 lists the combinations of conditions that can be set by the BREAKCONDITION_ SET command. Table 5.5 Conditions Set by BREAKCONDITION_SET Command
Condition Address Bus Condition ( option) Data Condition ( option) Read or Write Condition ( option)
Channel Break condition 1 Break condition 2
O O
O O
O O
Note: O: Can be set by the BREAKCONDITION_SET command.
Rev. 1.00 Aug. 03, 2009 Page 21 of 26 REJ10J2023-0100
Section 5 Differences between the MCUs and the Emulator
* Notes on Setting the Break Condition 1. When [Step In], [Step Over], or [Step Out] is selected, the settings of Break Condition are disabled. 2. The settings of Break Condition are disabled when an instruction to which a BREAKPOINT has been set is executed. 3. When step over function is used, the settings of BREAKPOINT and Break Condition are disabled. 4. Do not make any setting that satisfies both Break Condition 2 and the BREAKPOINT or Break Condition 1. Otherwise, the break cause of Break Condition 2 is retained and a break will occur by executing no instruction when the user program execution is resumed. 5. When Break Condition 2 is satisfied, the emulator uses the latest one branch of the branch trace information. 6. Break Condition 2 causes no break when it has a conflict with a reset.
Rev. 1.00 Aug. 03, 2009 Page 22 of 26 REJ10J2023-0100
Section 5 Differences between the MCUs and the Emulator
20. Items Set in the [Configuration] Dialog Box The emulator operation conditions are set in the [Configuration] dialog box.
Figure 5.4 [Configuration] Dialog Box ([System] Page)
Rev. 1.00 Aug. 03, 2009 Page 23 of 26 REJ10J2023-0100
Section 5 Differences between the MCUs and the Emulator
Items that can be displayed in this dialog box are listed below. [Device] combo box [Emulation mode] combo box Displays the MCU name. Selects the emulation mode at user program execution. Select Normal to perform normal emulation. Select No break to disable PC breakpoint or break condition settings during emulation. [Step option] combo box Sets the step interrupt option. Disable interrupts during single step execution: Disables *1 interrupts during step execution. Enable interrupts during single step execution: Enables *1 interrupts during step execution. [NMI signal] group box Sets the use of the NMI# signal. When used as a forced break in the emulator, select Emulator. In this case, the NMI# signal cannot be used. The contents of the NMI# vector address are rewritten by the emulator program. When used in the user program, select User. In this case, the forced break cannot be used. Before user program execution, set the breakpoints or break conditions for the exception processing and generate exceptions to halt the program. [User interface clock] combo box [Breakcondition mode] group box Displays the transfer clock of the user interface. Sets the address break release function. When the address break function is not used in the user program, select Emulator. In this case, the hardware break and step functions can be used. The contents of the vector address are rewritten by the emulator program to satisfy the break conditions. When the address break is used in the user program, select User. In this case, the hardware break function (Break Condition 2) cannot be used. [Flash memory synchronization] combo box Selects whether or not the contents of the flash memory are acquired by the emulator when the user program is stopped or the position where the PC break is set is put back as the original code. When the flash memory is not programmed by the user program, its contents need not be acquired by the emulator.
Rev. 1.00 Aug. 03, 2009 Page 24 of 26 REJ10J2023-0100
Section 5 Differences between the MCUs and the Emulator
If there is no problem with the state that the program in the flash memory has been replaced as the PC break code, the position where the PC break is set needs not be put back as the original code. Disable: Read or program is not performed for the flash memory except when the emulator is activated, the flash memory area is modified, and the settings of the PC break to the flash memory area are changed. PC to flash memory: When the user program is stopped, the specified PC break code is replaced as the original instruction. Select this option if there is a problem with the state that the program in the flash memory has been replaced as the PC break code. Flash memory to PC: When the user program is stopped, the contents of the flash memory are read by the emulator. Select this option if the flash memory is reprogrammed by the user program. PC to flash memory, Flash memory to PC: When the user program is stopped, the contents of the flash memory are read by the emulator and the specified PC break code is replaced as the original instruction. Select this option if the flash memory is reprogrammed by the user program and there is a problem with the state that the program in the flash memory has been replaced as the PC break code. [Step Over option] combo box Enables or disables programming of the flash memory while executing step operation. Programming of the flash memory: Uses a software break for step operation (e.g. Step Over) and enables programming of the flash memory. No Programming of the flash memory: Uses Break Condition for step operation (e.g. Step Over) and disables programming of the flash memory*2. [Flash memory write after download] group box Enables or disables programming of the flash memory after downloading the program. Disable: Disables programming of the flash memory after downloading the program. Enable: Enables programming of the flash memory after downloading the program.
Rev. 1.00 Aug. 03, 2009 Page 25 of 26 REJ10J2023-0100
Section 5 Differences between the MCUs and the Emulator
Notes: 1. Includes interrupts in a break. 2. When Step Over is performed after selecting [No Programming of the flash memory] for [Step Over option], the instruction that follows a JSR, BSR, or TRAPA instruction will also be executed. If there are consecutive JSR, BSR, or TRAPA instructions, execution proceeds until it reaches an instruction that is not JSR, BSR, or TRAPA. (When there are consecutive function calls in C language, the program steps all of these functions.) 21. Initializing the Internal I/O Register with the Reset_CPU Function Be sure to initialize the internal I/O registers shown below by the user program since they are not initialized by selecting [Debug] - [Reset CPU] or using the RESET command. Table 5.6 Registers Not Initialized
MCU Name H8/38076RF H8/38086RF H8/38776F Register Not Initialized SYSCR1, SYSCR2, IEGR, INTM, IENR2, IENR1, IRR1, IRR2, IWPR, CKSTPR1, CKSTPR2
Rev. 1.00 Aug. 03, 2009 Page 26 of 26 REJ10J2023-0100
Notes on Connecting the H8/38602RF
Notes on Connecting the H8/38602RF
Rev. 1.00 Aug. 03, 2009 Page 1 of 24 REJ10J2023-0100
Notes on Connecting the H8/38602RF
Rev. 1.00 Aug. 03, 2009 Page 2 of 24 REJ10J2023-0100
Section 1 Inside the E8a Emulator User's Manual
Section 1 Inside the E8a Emulator User's Manual
The E8a emulator (hereafter referred to as E8a in this document) manual consists of two documents: the E8a User's Manual and the E8a Additional Document for User's Manual (this document). Be sure to read BOTH documents before using the E8a emulator. (1) E8a Emulator User's Manual The E8a Emulator User's Manual describes the hardware specifications and how to use the emulator debugger. E8a emulator hardware specifications Connecting the E8a emulator to the host computer or user system Operating the E8a emulator debugger Tutorial: From starting up the E8a emulator debugger to debugging (2) E8a Additional Document for User's Manual The E8a Additional Document for User's Manual describes content dependent on the MCUs and precautionary notes. Example of the E8a emulator connection or interface circuit necessary for designing the hardware Notes on using the E8a emulator Setting the E8a emulator debugger during startup
Rev. 1.00 Aug. 03, 2009 Page 3 of 24 REJ10J2023-0100
Section 1 Inside the E8a Emulator User's Manual
Rev. 1.00 Aug. 03, 2009 Page 4 of 24 REJ10J2023-0100
Section 2 Connecting the Emulator with the User System
Section 2 Connecting the Emulator with the User System
Before connecting an E8a emulator (hereafter referred to as emulator) with the user system, a connector must be installed in the user system so that a user system interface cable can be connected. When designing the user system, refer to the connector and recommended circuits shown in this manual. Before designing the user system, be sure to read the E8a emulator user's manual and the hardware manual for related MCUs. Table 2.1 shows the recommended connector for the emulator. Table 2.1 Recommended Connector
Type Number 2514-6002 Manufacturer 3M Limited Specifications 14-pin straight type
Connect pins 2, 4, 6, 10, 12, and 14 of the user system connector to GND firmly on the PCB. These pins are used as electrical GND and to monitor the connection of the user system connector. Note the pin assignments of the user system connector.
User system interface cable
User system connector
User system Pin 2
Pin 1
Figure 2.1 Connecting the User System Interface Cable to the User System
Rev. 1.00 Aug. 03, 2009 Page 3 of 24 REJ10J2023-0100
Section 2 Connecting the Emulator with the User System
Notes:
1. 2. 3.
The pin number assignments of the 14-pin connector differ from those of the E10A-USB emulator; however, the physical location is the same. Do not place any components within 3 mm of the connector. When the emulator is used in the [Program Flash] mode, connect the emulator similarly to the user system.
Rev. 1.00 Aug. 03, 2009 Page 4 of 24 REJ10J2023-0100
Section 3 Pin Assignments of the E8a Connector
Section 3 Pin Assignments of the E8a Connector
Figure 3.1 shows the pin assignments of the connector.
Pin No. 1 Pin 1 mark Connector 2 3 4 5 6 7 8 9 10 Top view Pin 1 mark 11 12 13 14 MCU Signal E7_2 Vss N.C. *2 Vss E7_1 Vss NMI# *1 Vcc N.C. *2 Vss E7_0 Vss RES# *1 Vss
Pin 2 Pin 1
Pin 14 Pin 13
Notes: 1. The symbol (#) means that the signal is active-low. 2. These pins are not used in the H8/300H Super Low Power series. Do not connect anything to these pins.
Figure 3.1 Pin Assignments of the Connector
Rev. 1.00 Aug. 03, 2009 Page 5 of 24 REJ10J2023-0100
Section 3 Pin Assignments of the E8a Connector
Rev. 1.00 Aug. 03, 2009 Page 6 of 24 REJ10J2023-0100
Section 4 Example of Emulator Connection
Section 4 Example of Emulator Connection
Figure 4.1 shows an example of emulator connection to the MCU.
Pulled-up at 4.7 k or more
Vcc Vcc
Vcc Vcc Vcc Vcc
NMI# E7_0 E7_1 E7_2 Vcc
NMI# E7_0 E7_1 E7_2 MCU
RES#
Resonator or oscillator
RES# OSC1 OSC2 TEST
Vss
User system Connector 14 pins with a 2.54-mm pitch
Figure 4.1 Example of Emulator Connection
Rev. 1.00 Aug. 03, 2009 Page 7 of 24 REJ10J2023-0100
Section 4 Example of Emulator Connection
Notes: 1. E7_0 to E7_2 pins are used by the emulator. Pull up and connect the emulator and MCU pins.
MCU User system connector Vcc 4.7 k Pins 1, 5, and 11 E7_0 to E7_2
Figure 4.2 Connection of Emulator and E10T_0 to E10T_2 Pins 2. The NMI# signal is used for forced break control by the emulator. Connect the emulator and MCU pins directly. In debugging without forced break control, change the mode with the High-performance Embedded Workshop. Then, when the user logic is connected with the open-collector output buffer, the NMI# pin can be used in the user system (however, at power-on, the NMI# pin is used by the emulator).
When connected directly: User system connector Vcc 4.7 k Pin 7 NMI# pin MCU
When the NMI# pin is used (forced break cannot be used): Vcc User system connector User logic * 4.7 k MCU
Pin 7 *Open-collector output buffer
NMI# pin
Figure 4.3 Connection of Emulator and NMI# Pin
Rev. 1.00 Aug. 03, 2009 Page 8 of 24 REJ10J2023-0100
Section 4 Example of Emulator Connection
3.
The RES# pin is used by the emulator. Create the following circuit so that reset input can be accepted from the emulator.
Vcc MCU
User system connector Pin 13
RES# pin
Figure 4.4 Example of a Reset Circuit 4. Connect Vss and Vcc with the Vss and Vcc of the MCU, respectively (within the guaranteed range of the microcomputer). When the power-supply mode is used, the power is supplied to the user system. Check that the power consumption or voltage of the user system is within the available range of E8a and avoid a problem such as closing of the power-supply circuit. Connect nothing with N.C. Use of the internal oscillator circuit is available in the H8/38602RF. However, a resonator or an oscillator must be connected to OSC1 and OSC2 pins when the emulator is connected. When the emulator is connected to the user system, ground the TEST pin of the MCU.
MCU
5. 6.
7.
TEST
Figure 4.5 Emulator and the TEST Pin Note: When the emulator is connected, ADTRG#, which is also used as the TEST pin, cannot be used.
Rev. 1.00 Aug. 03, 2009 Page 9 of 24 REJ10J2023-0100
Section 4 Example of Emulator Connection
WARNING
In the power-supply mode, connect the emulator after checking that the power-supply circuit on the user system is not closed or the pin number assignments of the user system connector is correct. Failure to do so will result in a FIRE HAZARD and will damage the host computer, the emulator, and the user system.
8. Figures 4.6 shows the interface circuit in the E8a emulator. Use these figures as references when determining the pull-up resistance value.
Rev. 1.00 Aug. 03, 2009 Page 10 of 24 REJ10J2023-0100
Section 4 Example of Emulator Connection
User system connector Power-supply circuit (only used for the power-supply mode) Emulator control circuit 100 k x3 1 M 100 k Vcc 8
22
E7_2
1
74LVC125B 22
E7_0
11
74LVC125B 22 NMI#
7
74LVC125B Vcc 3.3 V
SN74LVC2T45 3.3 V Vcc 22 SN74LVC2T45 3.3 V Vcc 22 3.3 V 10 k SN74LVC2T45 2CS2462 10 k RES# 13 E7_1 5
Notes: 1. This figure omits the test circuits and pin numbers 2, 3, 4, 6, 9, 10, 12, and 14 for the user connector that are not used when H8/Tiny series is connected. 2. The power of 74LVC125B is supplied from Vcc in the user connector (or in the power-supply circuit during power-supply mode).
Figure 4.6 Interface Circuit in the E8a Emulator (Reference)
Rev. 1.00 Aug. 03, 2009 Page 11 of 24 REJ10J2023-0100
Section 4 Example of Emulator Connection
Rev. 1.00 Aug. 03, 2009 Page 12 of 24 REJ10J2023-0100
Section 5 Differences between the MCU (H8/38602RF) and the Emulator
Section 5 Differences between the MCU (H8/38602RF) and the Emulator
This section describes the differences between the emulator and MCU operations. 1. [Emulator Setting] Dialog Box The [Emulator Setting] dialog box is provided for setting the items that need to be set when the emulator starts up (settings are saved in the session).
Figure 5.1 [Emulator Setting] Dialog Box
Rev. 1.00 Aug. 03, 2009 Page 13 of 24 REJ10J2023-0100
Section 5 Differences between the MCU (H8/38602RF) and the Emulator
To keep the [Emulator Setting] dialog box closed next time the emulator is started, check "Do not show this dialog box again." at the bottom of the [Emulator Setting] dialog box. You can open the [Emulator Setting] dialog box using either one of the following methods: After the emulator gets started, select Menu - [Setup] -> [Emulator] -> [Emulator Setting...]. Start the emulator while holding down the Ctrl key. After the emulator gets started and an error occurred, restart the emulator. When you check "Do not show this dialog box again.", the emulator doesn't supply power to the user system. To use this check box, start the emulator after turning on the power. 2. Emulator Mode The selection of the device, the specification of the mode, and the setting of the power supply are done in the [Emulator mode] page of the [Emulator Setting] dialog box. Device Select the device name in use from the [Device] combo box. The following items are selected in the [Mode] group box. Modes * Erase Flash and Connect This mode is used when there is no emulator program in the flash memory of the target device. In this mode, data of the flash memory of the target device is erased when the emulator is activated. Select this item when the emulator is firstly activated, the version of the emulator's software is updated, or the ID code is changed. * Keep Flash and Connect This mode is used when there is an emulator program in the flash memory of the target device. Enter the ID code specified above (`Erase Flash and Connect'). If an incorrect code is entered, all the programs on the flash memory will be erased. Note: When the emulator gets started in this mode after selecting "Do not show this dialog box again.", the initial values of the ID code is `0E8a' for the E8a emulator. If you use the ID code other than the initial value, do not use "Do not show this dialog box again.".
Rev. 1.00 Aug. 03, 2009 Page 14 of 24 REJ10J2023-0100
Section 5 Differences between the MCU (H8/38602RF) and the Emulator
* Program Flash This mode is used when the emulator is used for programming the flash memory. Debugging the program is disabled. To download the load module, register it in the workspace. Note: In the H8/Tiny or H8/Super Low Power device, the ID code is not entered in the Program Flash mode. Power Supply When [Power Target from emulator. (MAX 300mA)] is checked, power will be supplied to the user system up to 300 mA. Then select 3.3 V or 5.0 V according to the power voltage of the user system. 3. Emulator Activation and ID Code In the H8/Tiny- or H8/Super Low Power-series MCU, the [System Clock] and [ID Code] dialog boxes are set when the emulator is activated. Setting the system clock Enter the clock value input to the board in use. The initial value differs in each MCU.
Figure 5.2 [System Clock] Dialog Box Setting the ID code When the emulator is activated in the [Erase Flash and Connect] mode, enter any * hexadecimal four-digit ID code to be set (except for H'FFFF). The initial value is H'0E8A. When the emulator is activated in the [Keep Flash and Connect] mode, enter the correct ID code. If an incorrect ID code is entered, all the contents of the flash memory will be erased. In this case, restart the emulator in the [Erase Flash and Connect] mode.
Rev. 1.00 Aug. 03, 2009 Page 15 of 24 REJ10J2023-0100
Section 5 Differences between the MCU (H8/38602RF) and the Emulator
Figure 5.3 [ID Code] Dialog Box 4. When the emulator system is initiated, it initializes the general registers and part of the control registers as shown in table 5.1. Table 5.1 Register Initial Values at Emulator Power-On
Register PC ER0 to ER6 ER7 (SP) CCR Initial Value Reset vector value in the vector address table H'0000 H'FF80 H'80
5. Low-Power Mode During a user program break, the CPU operating frequency is forced to a system clock () for high-speed operation. 6. RES# Signal The MCU signals are only valid during user program execution started with clicking the GO or STEP-type button. During a user program break, the RES# signal is not sent to the MCU. Note: Do not start user program execution or access the memory while control input signal (RES#) is being low. A TIMEOUT error will occur.
Rev. 1.00 Aug. 03, 2009 Page 16 of 24 REJ10J2023-0100
Section 5 Differences between the MCU (H8/38602RF) and the Emulator
7. System Control Register In the emulator, the internal I/O registers can be accessed from the [IO] window. However, be careful when accessing the system control register. The emulator saves the register value of the system control register at a break and returns the value when the user program is executed. Since this is done during a break, do not rewrite the system control register in the [IO] window. 8. Memory Access during Emulation If the memory contents are referenced or modified during emulation, realtime emulation cannot be performed because the user program is temporarily halted. 9. The emulator communicates with the MCUs by using the NMI#, RES#, and E7_2 to E7_0 pins. These pins cannot be used, however, the NMI# pin can be used by changing the setting of the [NMI signal] group box in the [Configuration] dialog box. 10. Sum Data Displayed in the Program Flash Mode Sum data, which is displayed in the `Program Flash' mode, is a value that data in the whole ROM areas has been added by byte (including data in the dedicated ROM area for the emulator). 11. Note on Executing the User Program The set value is rewritten since the emulator uses flash memory and watchdog timer registers during programming (Go, Step In, Step Out, or Step Over) of the flash memory. 12. The power consumed by the MCU can reach several milliamperes. This is because the user power supply drives ICs to make the communication signal level match the user-system power-supply voltage. The power consumed rises little during user program execution since the emulator does not perform communication; it rises more during a break. 13. Program Area for the Emulator Do not access a part of areas in the flash memory or the internal RAM since the emulator program uses these areas. If the contents of the program area for the emulator are changed, the emulator will not operate normally. In this case, restart the emulator with the Erase Flash and Connect mode.
Rev. 1.00 Aug. 03, 2009 Page 17 of 24 REJ10J2023-0100
Section 5 Differences between the MCU (H8/38602RF) and the Emulator
Table 5.2 Program Area for the E8a Emulator
MCU Name H8/38602RF Program Area Emulator ROM: H'4000 to H'4FFF Internal RAM: H'F780 to H'FB7F Vector, etc.: H'0002 to H'000F, H'4FF8 to H'4FF9
14. The emulator uses a two-word stack pointer for values stored on a user program break. Therefore, the stack area must accept two-word addresses. 15. Do not use an MCU that has been used for debugging. If the flash memory is rewritten many times, data may be lost due to retention problems after the emulator has been left for a few days and the data will be erased. If an error message is displayed, exchange the MCU for a new one. 16. Forced Break Function When the NMI# signal is used for a forced break in the emulator, the vector address of NMI# is rewritten by the emulator program. An error will occur if a file in the host computer and the flash memory contents are verified. Do not use the flash memory contents as the ROM data for the mask ROM after it has been saved. 17. Setting the Usage of the NMI# Signal In the [Configuration] dialog box, when the NMI# signal is changed as it is used in the user program, the vector address of NMI# is not recovered. Reload the user program. 18. Address Break Release Function When the address break function is not released for users, the vector address of address break is rewritten by the emulator program. An error will occur if a file in the host computer and the flash memory contents are verified. Do not use the flash memory contents as the ROM data for the mask ROM after it has been saved. 19. Initializing the Internal I/O Register with the Reset_CPU Function Be sure to initialize the internal I/O registers shown below by the user program since they are not initialized by selecting [Debug] - [Reset CPU] or using the RESET command.
Rev. 1.00 Aug. 03, 2009 Page 18 of 24 REJ10J2023-0100
Section 5 Differences between the MCU (H8/38602RF) and the Emulator
Table 5.3 Registers Not Initialized
MCU Name H8/38602RF Register Not Initialized SYSCR1, SYSCR2, IEGR, IENR1, IENR2, OSCCR, IRR1, IRR2, CKSTPR1, CKSTPR2
20. Step Execution of the SLEEP Instruction When the interrupt mask bit (I) in the condition code register (CCR) is 1, do not perform step execution of the SLEEP instruction. If the step execution is performed and not finished correctly, restart the emulator. 21. Use of the internal oscillator circuit is available in the H8/38602RF. However, a resonator or an oscillator must be connected to OSC1 and OSC2 pins when the emulator is connected. 22. Processing at Emulator Activation When the emulator is activated, the watchdog timer is not active; the operation of the emulator differs from that of the MCU. 23. Hardware Break Functions * In the H8/38602RF E8a emulator, conditions of Break Condition 1,2 can be set. Table 5.4 lists the items that can be specified. Table 5.4 Hardware Break Condition Specification Items
Items Address bus condition Data bus condition Description Breaks when the MCU address bus value matches the specified value. Breaks when the MCU data bus value matches the specified value. High or low byte or word can be specified as the access data size. Breaks in the read or write cycle.
Read or write condition
Rev. 1.00 Aug. 03, 2009 Page 19 of 24 REJ10J2023-0100
Section 5 Differences between the MCU (H8/38602RF) and the Emulator
Table 5.5 lists the combinations of conditions that can be set in the [Break condition] dialog box. Table 5.5 Conditions Set in [Break condition] Dialog Box
Condition Dialog Box [Break condition 1] [Break condition 2] Address Bus Condition Data Condition Read or Write Condition
O O
O X
O X
Note: O: Can be set by checking the radio button in the dialog box.
Table 5.6 lists the combinations of conditions that can be set by the BREAKCONDITION_ SET command. Table 5.6 Conditions Set by BREAKCONDITION_SET Command
Condition Address Bus Condition ( option) Data Condition ( option) Read or Write Condition ( option)
Channel Break condition 1 Break condition 2
O O
O X
O X
Note: O: Can be set by the BREAKCONDITION_SET command.
* Notes on Setting the Break Condition 1. When [Step In], [Step Over], or [Step Out] is selected, the settings of Break Condition are disabled. 2. The settings of Break Condition are disabled when an instruction to which a BREAKPOINT has been set is executed. 3. When step over function is used, the settings of BREAKPOINT and Break Condition are disabled. 4. Do not satisfy Break Condition 2 and another break source (BREAKPOINT or Break Condition 1) simultaneously. A break will occur with an illegal value.
Rev. 1.00 Aug. 03, 2009 Page 20 of 24 REJ10J2023-0100
Section 5 Differences between the MCU (H8/38602RF) and the Emulator
24. Items Set in the [Configuration] Dialog Box The emulator operation conditions are set in the [Configuration] dialog box.
Figure 5.4 [Configuration] Dialog Box ([System] Page)
Rev. 1.00 Aug. 03, 2009 Page 21 of 24 REJ10J2023-0100
Section 5 Differences between the MCU (H8/38602RF) and the Emulator
Items that can be displayed in this dialog box are listed below.
[Device] combo box [Emulation mode] combo box Displays the MCU name. Selects the emulation mode at user program execution. Select Normal to perform normal emulation. Select No break to disable PC breakpoint or break condition settings during emulation. [Step option] combo box Sets the step interrupt option. Disable interrupts during single step execution: Disables *1 interrupts during step execution. Enable interrupts during single step execution: Enables *1 interrupts during step execution. [NMI signal] group box Sets the use of the NMI# signal. When used as a forced break in the emulator, select Emulator. In this case, the NMI# signal cannot be used. The contents of the NMI# vector address are rewritten by the emulator program. When used in the user program, select User. In this case, the forced break cannot be used. Before user program execution, set the breakpoints or break conditions for the exception processing and generate exceptions to halt the program. [User interface clock] combo box [Breakcondition mode] group box Displays the transfer clock of the user interface. Sets the address break release function. When the address break function is not used in the user program, select Emulator. In this case, the hardware break and step functions can be used. The contents of the vector address are rewritten by the emulator program to satisfy the break conditions. When the address break is used in the user program, select User. In this case, the hardware break function (Break Condition 2) cannot be used. [Flash memory synchronization] combo box Selects whether or not the contents of the flash memory are acquired by the emulator when the user program is stopped or the position where the PC break is set is put back as the original code. When the flash memory is not programmed by the user program, its contents need not be acquired by the emulator.
Rev. 1.00 Aug. 03, 2009 Page 22 of 24 REJ10J2023-0100
Section 5 Differences between the MCU (H8/38602RF) and the Emulator
If there is no problem with the state that the program in the flash memory has been replaced as the PC break code, the position where the PC break is set needs not be put back as the original code. Disable: Read or program is not performed for the flash memory except when the emulator is activated, the flash memory area is modified, and the settings of the PC break to the flash memory area are changed. PC to flash memory: When the user program is stopped, the specified PC break code is replaced as the original instruction. Select this option if there is a problem with the state that the program in the flash memory has been replaced as the PC break code. Flash memory to PC: When the user program is stopped, the contents of the flash memory are read by the emulator. Select this option if the flash memory is reprogrammed by the user program. PC to flash memory, Flash memory to PC: When the user program is stopped, the contents of the flash memory are read by the emulator and the specified PC break code is replaced as the original instruction. Select this option if the flash memory is reprogrammed by the user program and there is a problem with the state that the program in the flash memory has been replaced as the PC break code. [Step Over option] combo box Enables or disables programming of the flash memory while executing step operation. Programming of the flash memory: Uses a software break for step operation (e.g. Step Over) and enables programming of the flash memory. No Programming of the flash memory: Uses Break Condition for step operation (e.g. Step Over) and disables programming of *2 the flash memory . [Flash memory write after download] group box Enables or disables programming of the flash memory after downloading the program. Disable: Disables programming of the flash memory after downloading the program. Enable: Enables programming of the flash memory after downloading the program.
Rev. 1.00 Aug. 03, 2009 Page 23 of 24 REJ10J2023-0100
Section 5 Differences between the MCU (H8/38602RF) and the Emulator
Notes: 1. Includes interrupts in a break. 2. When Step Over is performed after selecting [No Programming of the flash memory] for [Step Over option], the instruction that follows a JSR, BSR, or TRAPA instruction will also be executed. If there are consecutive JSR, BSR, or TRAPA instructions, execution proceeds until it reaches an instruction that is not JSR, BSR, or TRAPA. (When there are consecutive function calls in C language, the program steps all of these functions.)
Rev. 1.00 Aug. 03, 2009 Page 24 of 24 REJ10J2023-0100
Notes on Connecting the H8/38099F and H8/38799F
Notes on Connecting the H8/38099F and H8/38799F
Rev. 1.00 Aug. 03, 2009 Page 1 of 26 REJ10J2023-0100
Notes on Connecting the H8/38099F and H8/38799F
Rev. 1.00 Aug. 03, 2009 Page 2 of 26 REJ10J2023-0100
Section 1 Inside the E8a Emulator User's Manual
Section 1 Inside the E8a Emulator User's Manual
The E8a emulator (hereafter referred to as E8a emulator in this document) manual consists of two documents: the E8a User's Manual and the E8a Additional Document for User's Manual (this document). Be sure to read BOTH documents before using the E8a emulator. (1) E8a Emulator User's Manual The E8a Emulator User's Manual describes the hardware specifications and how to use the emulator debugger. E8a emulator hardware specifications Connecting the E8a emulator to the host computer or user system Operating the E8a emulator debugger Tutorial: From starting up the E8a emulator debugger to debugging (2) E8a Additional Document for User's Manual The E8a Additional Document for User's Manual describes content dependent on the MCUs and precautionary notes. Example of the E8a emulator connection or interface circuit necessary for designing the hardware Notes on using the E8a emulator Setting the E8a emulator debugger during startup
Rev. 1.00 Aug. 03, 2009 Page 3 of 26 REJ10J2023-0100
Section 1 Inside the E8a Emulator User's Manual
Rev. 1.00 Aug. 03, 2009 Page 4 of 26 REJ10J2023-0100
Section 2 Connecting the Emulator with the User System
Section 2 Connecting the Emulator with the User System
Before connecting an E8a emulator (hereafter referred to as emulator) with the user system, a connector must be installed in the user system so that an user system interface cable can be connected. When designing the user system, refer to the connector and recommended circuits shown in this manual. Before designing the user system, be sure to read the E8a emulator user's manual and the hardware manual for related MCUs. Table 2.1 shows the recommended connector for the emulator. Table 2.1 Recommended Connector
Type Number 2514-6002 Manufacturer 3M Limited Specifications 14-pin straight type
Connect pins 2, 4, 6, 10, 12, and 14 of the user system connector to GND firmly on the PCB. These pins are used as electrical GND and to monitor the connection of the user system connector. Note the pin assignments of the user system connector.
User system interface cable
User system connector
User system Pin 2
Pin 1
Figure 2.1 Connecting the User System Interface Cable to the User System
Rev. 1.00 Aug. 03, 2009 Page 5 of 26 REJ10J2023-0100
Section 2 Connecting the Emulator with the User System
Notes: 1. The pin number assignments of the 14-pin connector differ from those of the E10AUSB emulator; however, the physical location is the same. 2. Do not place any components within 3 mm of the connector. When the emulator is used in the [Program Flash] mode, connect the emulator similarly to the user system.
Rev. 1.00 Aug. 03, 2009 Page 6 of 26 REJ10J2023-0100
Section 3 Pin Assignments of the E8a Connector
Section 3 Pin Assignments of the E8a Connector
Figure 3.1 shows the pin assignments of the emulators connector.
Pin No. 1 Pin 1 mark Connector 2 3 4 5 6 7 8 9 10 Top view Pin 1 mark 11 12 13 14 MCU Signal P16 Vss N.C. *2 Vss P37 Vss NMI# *1 Vcc N.C. *2 Vss P36 Vss RES# *1 Vss
Pin 2 Pin 1
Pin 14 Pin 13
Notes: 1. The symbol (#) means that the signal is active-low. 2. These pins are not used in the H8/300H Super Low Power series. Do not connect anything to these pins.
Figure 3.1 Pin Assignments of the Emulators Connector
Rev. 1.00 Aug. 03, 2009 Page 7 of 26 REJ10J2023-0100
Section 3 Pin Assignments of the E8a Connector
Rev. 1.00 Aug. 03, 2009 Page 8 of 26 REJ10J2023-0100
Section 4 Example of Emulator Connection
Section 4 Example of Emulator Connection
Figure 4.1 shows an example of emulator connection to the MCU.
Pulled-up at 4.7 k or more
Vcc Vcc
Vcc Vcc Vcc Vcc
NMI# P16 P36 P37 Vcc
NMI# P16 P36 P37 MCU
RES#
RES# TEST
Vss
User system Connector 14 pins with a 2.54-mm pitch
Figure 4.1 Example of Emulator Connection
Rev. 1.00 Aug. 03, 2009 Page 9 of 26 REJ10J2023-0100
Section 4 Example of Emulator Connection
Notes: 1. P16, P36, and P37 pins are used by the emulator. Pull up and connect the emulator and MCU pins.
MCU User system connector Vcc 4.7 k Pins 1, 5, and 11
P16, P36, and P37
Figure 4.2 Connection of Emulator and P16, P36, and P37 Pins 2. The NMI# signal is used for forced break control by the emulator. Connect the emulator and MCU pins directly. In debugging without forced break control, change the mode with the High-performance Embedded Workshop. Then, when the user logic is connected with the open-collector output buffer, the NMI# pin can be used in the user system (however, at power-on, the NMI# pin is used by the emulator).
MCU Vcc 4.7 k Pin 7 NMI# pin
When connected directly: User system connector
When the NMI# pin is used (forced break cannot be used): Vcc User system connector User logic * 4.7 k MCU
Pin 7 *Open-collector output buffer
NMI# pin
Figure 4.3 Connection of Emulator and NMI# Pin
Rev. 1.00 Aug. 03, 2009 Page 10 of 26 REJ10J2023-0100
Section 4 Example of Emulator Connection
3.
The RES# pin is used by the emulator. Create the following circuit so that reset input can be accepted from the emulator.
Vcc MCU
User system connector Pin 13
RES# pin
Figure 4.4 Example of a Reset Circuit 4. Connect Vss and Vcc with the Vss and Vcc of the MCU, respectively (within the guaranteed range of the microcomputer). When the power-supply mode is used, the power is supplied to the user system. Check that the power consumption or voltage of the user system is within the available range of E8a and avoid a problem such as closing of the power-supply circuit. Connect nothing with N.C. When the emulator is connected to the user system, ground the TEST pin of the MCU.
MCU
5. 6.
TEST
Figure 4.5 Emulator and the TEST Pin Note: When the emulator is connected, ADTRG#, which is also used as the TEST pin, cannot be used.
Rev. 1.00 Aug. 03, 2009 Page 11 of 26 REJ10J2023-0100
Section 4 Example of Emulator Connection
WARNING
In the power-supply mode, connect the emulator after checking that the power-supply circuit on the user system is not closed or the pin number assignments of the user system connector is correct. Failure to do so will result in a FIRE HAZARD and will damage the host computer, the emulator, and the user system.
7. Figure 4.6 shows the interface circuit in the E8a emulator. Use this figure as a reference when determining the pull-up resistance value.
Rev. 1.00 Aug. 03, 2009 Page 12 of 26 REJ10J2023-0100
Section 4 Example of Emulator Connection
User system connector Power-supply circuit (only used for the power-supply mode) Emulator control circuit 100 k x3 1 M 100 k Vcc 8
22
P16
1
74LVC125B 22
P36
11
74LVC125B 22 NMI#
7
74LVC125B Vcc 3.3 V
SN74LVC2T45 3.3 V Vcc 22 SN74LVC2T45 3.3 V Vcc 22 3.3 V 10 k SN74LVC2T45 2CS2462 10 k RES# 13 P37 5
Notes: 1. This figure omits the test circuits and pin numbers 2, 3, 4, 9, 10, 12, and 14 for the user connector that are not used when H8/Tiny or H8/Super Low Power series is connected. 2. The power of 74LVC125B is supplied from Vcc in the user connector (or in the power-supply circuit during power-supply mode).
Figure 4.6 Interface Circuit in the E8a Emulator (Reference)
Rev. 1.00 Aug. 03, 2009 Page 13 of 26 REJ10J2023-0100
Section 4 Example of Emulator Connection
Rev. 1.00 Aug. 03, 2009 Page 14 of 26 REJ10J2023-0100
Section 5 Differences between the MCUs and the Emulator
Section 5 Differences between the MCUs (H8/38099F and H8/38799F) and the Emulator
This section describes the differences between the emulator and MCU operations. 1. [Emulator Setting] Dialog Box The [Emulator Setting] dialog box is provided for setting the items that need to be set when the emulator starts up (settings are saved in the session).
Figure 5.1 [Emulator Setting] Dialog Box
Rev. 1.00 Aug. 03, 2009 Page 15 of 26 REJ10J2023-0100
Section 5 Differences between the MCUs and the Emulator
To keep the [Emulator Setting] dialog box closed next time the emulator is started, check "Do not show this dialog box again." at the bottom of the [Emulator Setting] dialog box. You can open the [Emulator Setting] dialog box using either one of the following methods: After the emulator gets started, select Menu - [Setup] -> [Emulator] -> [Emulator Setting...]. Start the emulator while holding down the Ctrl key. After the emulator gets started and an error occurred, restart the emulator. When you check "Do not show this dialog box again.", the emulator doesn't supply power to the user system. To use this check box, start the emulator after turning on the power. 2. Emulator Mode The selection of the device, the specification of the mode, and the setting of the power supply are done in the [Emulator mode] page of the [Emulator Setting] dialog box. Device Select the device name in use from the [Device] combo box. The following items are selected in the [Mode] group box. Modes * Erase Flash and Connect This mode is used when there is no emulator program in the flash memory of the target device. In this mode, data of the flash memory of the target device is erased when the emulator is activated. Select this item when the emulator is firstly activated, the version of the emulator's software is updated, or the ID code is changed. * Keep Flash and Connect This mode is used when there is an emulator program in the flash memory of the target device. Enter the ID code specified above (`Erase Flash and Connect'). If an incorrect code is entered, all the programs on the flash memory will be erased. Note: When the emulator gets started in this mode after selecting "Do not show this dialog box again.", the initial value of the ID code is `0E8a'. If you use the ID code other than the initial value, do not use "Do not show this dialog box again.".
Rev. 1.00 Aug. 03, 2009 Page 16 of 26 REJ10J2023-0100
Section 5 Differences between the MCUs and the Emulator
* Program Flash This mode is used when the emulator is used for programming the flash memory. Debugging the program is disabled. To download the load module, register it in the workspace. Note: In the H8/Tiny or H8/Super Low Power device, the ID code is not entered in the Program Flash mode. Power Supply When [Power Target from emulator. (MAX 300mA)] is checked, power will be supplied to the user system up to 300 mA. Then select 3.3 V or 5.0 V according to the power voltage of the user system. 3. Emulator Activation and ID Code In the H8/Tiny- or H8/Super Low Power-series MCU, the [System Clock] and [ID Code] dialog boxes are set when the emulator is activated. Setting the system clock Enter the clock value input to the board in use. The initial value differs in each MCU.
Figure 5.2 [System Clock] Dialog Box Setting the ID code When the emulator is activated in the [Erase Flash and Connect] mode, enter any hexadecimal four-digit ID code to be set (except for H'FFFF). The initial value is H'0E8A. When the emulator is activated in the [Keep Flash and Connect] mode, enter the correct ID code. If an incorrect ID code is entered, all the contents of the flash memory will be erased. In this case, restart the emulator in the [Erase Flash and Connect] mode.
Rev. 1.00 Aug. 03, 2009 Page 17 of 26 REJ10J2023-0100
Section 5 Differences between the MCUs and the Emulator
Figure 5.3 [ID Code] Dialog Box 4. When the emulator system is initiated, it initializes the general registers and part of the control registers as shown in table 5.1. Table 5.1 Register Initial Values at Emulator Power-On
Register PC ER0 to ER6 ER7 (SP) CCR Initial Value Reset vector value in the vector address table H'000000 H'FFFF80 H'80
5. Low-Power Mode During a user program break, the CPU operating frequency is forced to a system clock () for high-speed operation. 6. RES# Signal The MCU signals are only valid during user program execution started with clicking the GO or STEP-type button. During a user program break, the RES# signal is not sent to the MCUs. Note: Do not start user program execution or access the memory while control input signal (RES#) is being low. A TIMEOUT error will occur.
Rev. 1.00 Aug. 03, 2009 Page 18 of 26 REJ10J2023-0100
Section 5 Differences between the MCUs and the Emulator
7. System Control Register In the emulator, the internal I/O registers can be accessed from the [IO] window. However, be careful when accessing the system control register. The emulator saves the register value of the system control register at a break and returns the value when the user program is executed. Since this is done during a break, do not rewrite the system control register in the [IO] window. 8. Memory Access during Emulation If the memory contents are referenced or modified during emulation, realtime emulation cannot be performed because the user program is temporarily halted. 9. The emulator communicates with the MCUs by using the NMI#, RES#, P16, P36, and P37 pins. These pins cannot be used, however, the NMI# pin can be used by changing the setting of the [NMI signal] group box in the [Configuration] dialog box. 10. Sum Data Displayed in the Program Flash Mode Sum data, which is displayed in the `Program Flash' mode, is a value that data in the whole ROM areas has been added by byte (including data in the dedicated ROM area for the emulator). 11. Note on Executing the User Program The set value is rewritten since the emulator uses flash memory and watchdog timer registers during programming (Go, Step In, Step Out, or Step Over) of the flash memory. 12. The power consumed by the MCU can reach several milliamperes. This is because the user power supply drives ICs to make the communication signal level match the user-system power-supply voltage. The power consumed rises little during user program execution since the emulator does not perform communication; it rises more during a break. 13. Program Area for the Emulator Do not access a part of areas in the flash memory or the internal RAM since the emulator program uses these areas. If the contents of the program area for the emulator are changed, the emulator will not operate normally. In this case, restart the emulator with the Erase Flash and Connect mode.
Rev. 1.00 Aug. 03, 2009 Page 19 of 26 REJ10J2023-0100
Section 5 Differences between the MCUs and the Emulator
Table 5.2 Program Area for the Emulator
MCU Name H8/38099F H8/38799F Program Area Emulator ROM: H'20000 to H'20FFF Internal RAM: H'FFA000 to H'FFA7FF Vector, etc.: H'0002 to H'00097, H'CFF8 to H'CFF9, H'000004 to H'000017, H'20FF8 to H'20FFF
14. The emulator uses a two-word stack pointer for values stored on a user program break. Therefore, the stack area must accept two-word addresses. 15. Do not use an MCU that has been used for debugging. If the flash memory is rewritten many times, data may be lost due to retention problems after the emulator has been left for a few days and the data will be erased. If an error message is displayed, exchange the MCU for a new one. 16. Forced Break Function When the NMI# signal is used for a forced break in the emulator, the vector address of NMI# is rewritten by the emulator program. An error will occur if a file in the host computer and the flash memory contents are verified. Do not use the flash memory contents as the ROM data for the mask ROM after it has been saved. 17. Setting the Usage of the NMI# Signal In the [Configuration] dialog box, when the NMI# signal is changed as it is used in the user program, the vector address of NMI# is not recovered. Reload the user program. 18. Address Break Release Function In the [Configuration] dialog box, when the address break is changed as it is used in the user program, Break Condition 2 is disabled in this emulator. 19. For the H8/38099F or H8/38799F, the internal resonator for the system clock is available; however, when the emulator is used, the oscillator or resonator must be connected to the OSC1 and OSC2 pins. 20. Hardware Break Functions * In the H8/38099F or H8/38799F E8a emulator, conditions of Break Condition 1,2,3,4 can be set. Table 4.3 lists the items that can be specified. Note: When the address break is used in the user program, Break Condition 2 is disabled.
Rev. 1.00 Aug. 03, 2009 Page 20 of 26 REJ10J2023-0100
Section 5 Differences between the MCUs and the Emulator
Table 5.3 Hardware Break Condition Specification Items
Items Address bus condition Data bus condition Description Breaks when the MCU address bus value matches the specified value. Breaks when the MCU data bus value matches the specified value. High or low byte or word can be specified as the access data size. Breaks in the read or write cycle.
Read or write condition
Table 5.4 lists the combinations of conditions that can be set in the [Break condition] dialog box. Table 5.4 Conditions Set in [Break condition] Dialog Box
Condition Dialog Box [Break condition 1] [Break condition 2] [Break condition 3] [Break condition 4] Address Bus Condition O O O O Data Condition O O X X Read or Write Condition O O X X
Note: O: Can be set by checking the radio button in the dialog box.
Table 5.5 lists the combinations of conditions that can be set by the BREAKCONDITION_ SET command. Table 5.5 Conditions Set by BREAKCONDITION_SET Command
Condition Address Bus Condition ( option) O O O O Data Condition ( option) O O X X Read or Write Condition ( option) O O X X
Channel Break condition 1 Break condition 2 Break condition 3 Break condition 4
Note: O: Can be set by the BREAKCONDITION_SET command.
Rev. 1.00 Aug. 03, 2009 Page 21 of 26 REJ10J2023-0100
Section 5 Differences between the MCUs and the Emulator
* Notes on Setting the Break Condition 1. When [Step In], [Step Over], or [Step Out] is selected, the settings of Break Condition are disabled. 2. The settings of Break Condition are disabled when an instruction to which a BREAKPOINT has been set is executed. 3. When step over function is used, the settings of BREAKPOINT and Break Condition are disabled. 4. Do not make any setting that satisfies both Break Condition 2 and the BREAKPOINT or Break Condition 1,3,4. Otherwise, the break cause of Break Condition 2 is retained and a break will occur by executing no instruction when the user program execution is resumed. 5. When Break Condition 2 is satisfied, the emulator uses the latest one branch of the branch trace information. 6. Break Condition 2 causes no break when it has a conflict with a reset.
Rev. 1.00 Aug. 03, 2009 Page 22 of 26 REJ10J2023-0100
Section 5 Differences between the MCUs and the Emulator
21. Items Set in the [Configuration] Dialog Box The emulator operation conditions are set in the [Configuration] dialog box.
Figure 5.4 [Configuration] Dialog Box ([System] Page) Items that can be displayed in this dialog box are listed below.
Rev. 1.00 Aug. 03, 2009 Page 23 of 26 REJ10J2023-0100
Section 5 Differences between the MCUs and the Emulator
[Device] combo box [Emulation mode] combo box
Displays the MCU name. Selects the emulation mode at user program execution. Select Normal to perform normal emulation. Select No break to disable PC breakpoint or break condition settings during emulation.
[Step option] combo box
Sets the step interrupt option. Disable interrupts during single step execution: Disables *1 interrupts during step execution. Enable interrupts during single step execution: Enables *1 interrupts during step execution.
[NMI signal] group box
Sets the use of the NMI# signal. When used as a forced break in the emulator, select Emulator. In this case, the NMI# signal cannot be used. The contents of the NMI# vector address are rewritten by the emulator program. When used in the user program, select User. In this case, the forced break cannot be used. Before user program execution, set the breakpoints or break conditions for the exception processing and generate exceptions to halt the program.
[User interface clock] combo box [Breakcondition mode] group box
Displays the transfer clock of the user interface. Sets the address break release function. When the address break function is not used in the user program, select Emulator. In this case, the hardware break and step functions can be used. The contents of the vector address are rewritten by the emulator program to satisfy the break conditions. When the address break is used in the user program, select User. In this case, the hardware break function (Break Condition 2) cannot be used.
[Flash memory synchronization] combo box
Selects whether or not the contents of the flash memory are acquired by the emulator when the user program is stopped or the position where the PC break is set is put back as the original code. When the flash memory is not programmed by the user program, its contents need not be acquired by the emulator.
Rev. 1.00 Aug. 03, 2009 Page 24 of 26 REJ10J2023-0100
Section 5 Differences between the MCUs and the Emulator
If there is no problem with the state that the program in the flash memory has been replaced as the PC break code, the position where the PC break is set needs not be put back as the original code. Disable: Read or program is not performed for the flash memory except when the emulator is activated, the flash memory area is modified, and the settings of the PC break to the flash memory area are changed. PC to flash memory: When the user program is stopped, the specified PC break code is replaced as the original instruction. Select this option if there is a problem with the state that the program in the flash memory has been replaced as the PC break code. Flash memory to PC: When the user program is stopped, the contents of the flash memory are read by the emulator. Select this option if the flash memory is reprogrammed by the user program. PC to flash memory, Flash memory to PC: When the user program is stopped, the contents of the flash memory are read by the emulator and the specified PC break code is replaced as the original instruction. Select this option if the flash memory is reprogrammed by the user program and there is a problem with the state that the program in the flash memory has been replaced as the PC break code. [Step Over option] combo box Enables or disables programming of the flash memory while executing step operation. Programming of the flash memory: Uses a software break for step operation (e.g. Step Over) and enables programming of the flash memory. No Programming of the flash memory: Uses Break Condition for step operation (e.g. Step Over) and disables programming of the flash memory*2. [Flash memory write after download] group box Enables or disables programming of the flash memory after downloading the program. Disable: Disables programming of the flash memory after downloading the program. Enable: Enables programming of the flash memory after downloading the program.
Rev. 1.00 Aug. 03, 2009 Page 25 of 26 REJ10J2023-0100
Section 5 Differences between the MCUs and the Emulator
Notes: 1. Includes interrupts in a break. 2. When Step Over is performed after selecting [No Programming of the flash memory] for [Step Over option], the instruction that follows a JSR, BSR, or TRAPA instruction will also be executed. If there are consecutive JSR, BSR, or TRAPA instructions, execution proceeds until it reaches an instruction that is not JSR, BSR, or TRAPA. (When there are consecutive function calls in C language, the program steps all of these functions.) 22. Initializing the Internal I/O Register with the Reset_CPU Function Be sure to initialize the internal I/O registers shown below by the user program since they are not initialized by selecting [Debug] - [Reset CPU] or using the RESET command. Table 5.6 Registers Not Initialized
MCU Name H8/38099F H8/38799F Register Not Initialized IEGR, IENR1, IENR2, INTM, IRR1, IRR2, IWPR, CKSTPR1, CKSTPR2, CKSTPR3
Rev. 1.00 Aug. 03, 2009 Page 26 of 26 REJ10J2023-0100
Notes on Connecting the H8/38524F
Notes on Connecting the H8/38524F
Rev. 1.00 Aug. 03, 2009 Page 1 of 24 REJ10J2023-0100
Notes on Connecting the H8/38524F
Rev. 1.00 Aug. 03, 2009 Page 2 of 24 REJ10J2023-0100
Section 1 Inside the E8a Emulator User's Manual
Section 1 Inside the E8a Emulator User's Manual
The E8a emulator (hereafter referred to as E8a in this document) manual consists of two documents: the E8a User's Manual and the E8a Additional Document for User's Manual (this document). Be sure to read BOTH documents before using the E8a emulator. (1) E8a Emulator User's Manual The E8a Emulator User's Manual describes the hardware specifications and how to use the emulator debugger. E8a emulator hardware specifications Connecting the E8a emulator to the host computer or user system Operating the E8a emulator debugger Tutorial: From starting up the E8a emulator debugger to debugging (2) E8a Additional Document for User's Manual The E8a Additional Document for User's Manual describes content dependent on the MCUs and precautionary notes. Example of the E8a emulator connection or interface circuit necessary for designing the hardware Notes on using the E8a emulator Setting the E8a emulator debugger during startup
Rev. 1.00 Aug. 03, 2009 Page 3 of 24 REJ10J2023-0100
Section 1 Inside the E8a Emulator User's Manual
Rev. 1.00 Aug. 03, 2009 Page 4 of 24 REJ10J2023-0100
Section 2 Connecting the Emulator with the User System
Section 2 Connecting the Emulator with the User System
Before connecting an E8a emulator (hereafter referred to as emulator) with the user system, a connector must be installed in the user system so that an user system interface cable can be connected. When designing the user system, refer to the connector and recommended circuits shown in this manual. Before designing the user system, be sure to read the E8a emulator user's manual and the hardware manual for related MCUs. Table 2.1 shows the recommended connector for the emulator. Table 2.1 Recommended Connector
Type Number 2514-6002 Manufacturer 3M Limited Specifications 14-pin straight type
Connect pins 2, 4, 6, 10, 12, and 14 of the user system connector to GND firmly on the PCB. These pins are used as electrical GND and to monitor the connection of the user system connector. Note the pin assignments of the user system connector.
User system interface cable
User system connector
User system Pin 2
Pin 1
Figure 2.1 Connecting the User System Interface Cable to the User System
Rev. 1.00 Aug. 03, 2009 Page 5 of 24 REJ10J2023-0100
Section 2 Connecting the Emulator with the User System
Notes: 1. The pin number assignments of the 14-pin connector differ from those of the E10AUSB emulator; however, the physical location is the same. 2. Do not place any components within 3 mm of the connector. 3. When the emulator is used in the [Program Flash] mode, connect the emulator similarly to the user system.
Rev. 1.00 Aug. 03, 2009 Page 6 of 24 REJ10J2023-0100
Section 3 Pin Assignments of the E8a Connector
Section 3 Pin Assignments of the E8a Connector
Figure 3.1 shows the pin assignments of the connector.
Pin No. 1 Pin 1 mark Connector 2 3 4 5 6 7 8 9 10 Top view Pin 1 mark 11 12 13 14 MCU Signal P33 Vss N.C. *2 Vss P35 Vss P95 Vcc N.C. *2 Vss P34 Vss RES# *1 Vss
Pin 2 Pin 1
Pin 14 Pin 13
Notes: 1. The symbol # means that the signal is active-low. Use of the internal oscillator circuit is available in the H8/38524F. However, an external clock input from pin OSC1 or OSC2 is necessary when the emulator is connected. 2. These pins are not used in the H8/300L Super Low Power series. Do not connect anything to these pins.
Figure 3.1 Pin Assignments of the Connector
Rev. 1.00 Aug. 03, 2009 Page 7 of 24 REJ10J2023-0100
Section 3 Pin Assignments of the E8a Connector
Rev. 1.00 Aug. 03, 2009 Page 8 of 24 REJ10J2023-0100
Section 4 Example of Emulator Connection
Section 4 Example of Emulator Connection
The figures shown below are examples of connecting the user system to the emulator. The H8/38524F incorporates a power-on reset circuit (hereafter referred to as POR). See figure 4.1 when you use the POR function or figure 4.2 when you do not use the POR function, respectively.
Pulled-up at 4.7 k or more
Vcc Vcc
Vcc Vcc Vcc Vcc
P95 P34 P35 P33 Vcc
P95 P34 P35 P33 MCU
RES#
RES#
Oscillator circuit
OSC1 or OSC2
Vss
User system Connector 14 pins with a 2.54-mm pitch
Figure 4.1 Example of Emulator Connection (when a POR is in Use)
Rev. 1.00 Aug. 03, 2009 Page 9 of 24 REJ10J2023-0100
Section 4 Example of Emulator Connection
Pulled-up at 4.7 k or more
Vcc Vcc
Vcc Vcc Vcc Vcc
P95 P34 P35 P33 Vcc User logic RES# *
P95 P34 P35 P33 MCU
RES#
Vss
Oscillator circuit
OSC1 or OSC2
User system Connector 14 pins with a 2.54-mm pitch
*: Open-collector buffer
Figure 4.2 Example of Emulator Connection (when a POR is not in Use)
Rev. 1.00 Aug. 03, 2009 Page 10 of 24 REJ10J2023-0100
Section 4 Example of Emulator Connection
Notes: 1. Pins P33 to P35 are used by the emulator. Pull up and connect the emulator and MCU pins.
MCU User system connector Vcc 4.7 k Pins 1, 5, and 11 P33 to P35
Figure 4.3 Connection of Emulator and Pins P33 to P35 2. Pin P95 is used for forced break control by the emulator. Connect the emulator and MCU pins directly.
MCU User system connector Vcc 4.7 k Pin 7 P95
Figure 4.4 Connection of Emulator and Pin P95
Rev. 1.00 Aug. 03, 2009 Page 11 of 24 REJ10J2023-0100
Section 4 Example of Emulator Connection
3.
The RES# pin is used by the emulator. Create the following circuit by connecting the open-collector output buffer so that a reset input from the emulator can be accepted:
When a POR is in use User system connector Pin 13 Vcc MCU
RES# pin
When a POR is not in use User system connector Vcc User logic * 4.7 k MCU
Pin 13 *Open-collector output buffer
RES# pin
Figure 4.5 Examples of Reset Circuits 4. Connect Vss and Vcc with the Vss and Vcc of the MCU, respectively (within the guaranteed range of the microcomputer). When the power-supply mode is used, the power is supplied to the user system. Check that the power consumption or voltage of the user system is within the available range of E8a and avoid a problem such as closing of the power-supply circuit. Connect nothing with N.C. Refer to the hardware manual for the recommended capacitance of the capacitor that is connected to the RES# pin. Use of the internal oscillator circuit is available in the H8S/38524F. However, an external clock input from pin OSC1 or OSC2 is necessary when the emulator is connected.
5. 6. 7.
Rev. 1.00 Aug. 03, 2009 Page 12 of 24 REJ10J2023-0100
Section 4 Example of Emulator Connection
WARNING
In the power-supply mode, connect the emulator after checking that the power-supply circuit on the user system is not closed or the pin number assignments of the user system connector is correct. Failure to do so will result in a FIRE HAZARD and will damage the host computer, the emulator, and the user system.
8. Figures 4.6 shows the interface circuit in the E8a emulator. Use these figures as references when determining the pull-up resistance value.
Rev. 1.00 Aug. 03, 2009 Page 13 of 24 REJ10J2023-0100
Section 4 Example of Emulator Connection
User system connector Power-supply circuit (only used for the power-supply mode) Emulator control circuit 100 k x3 1 M 100 k Vcc 8
22
P33
1
74LVC125B 22
P34
11
74LVC125B 22 P95
7
74LVC125B Vcc 3.3 V
SN74LVC2T45 3.3 V Vcc 22 SN74LVC2T45 3.3 V Vcc 22 3.3 V 10 k SN74LVC2T45 2CS2462 10 k RES# 13 P35 5
Notes: 1. This figure omits the test circuits and pin numbers 3, 4, 9, and 14 for the user connector that are not used when H8/Tiny series is connected. 2. The power of 74LVC125B is supplied from Vcc in the user connector (or in the power-supply circuit during power-supply mode).
Figure 4.6 Interface Circuit in the E8a Emulator (Reference)
Rev. 1.00 Aug. 03, 2009 Page 14 of 24 REJ10J2023-0100
Section 5 Differences between the MCU and the Emulator
Section 5 Differences between the MCUs (H8/38524F) and the Emulator
This section describes the differences between the emulator and MCU operations. 1. [Emulator Setting] Dialog Box The [Emulator Setting] dialog box is provided for setting the items that need to be set when the emulator starts up (settings are saved in the session).
Figure 5.1 [Emulator Setting] Dialog Box
Rev. 1.00 Aug. 03, 2009 Page 15 of 24 REJ10J2023-0100
Section 5 Differences between the MCU and the Emulator
To keep the [Emulator Setting] dialog box closed next time the emulator is started, check "Do not show this dialog box again." at the bottom of the [Emulator Setting] dialog box. You can open the [Emulator Setting] dialog box using either one of the following methods: After the emulator gets started, select Menu - [Setup] -> [Emulator] -> [Emulator Setting...]. Start the emulator while holding down the Ctrl key. After the emulator gets started and an error occurred, restart the emulator. When you check "Do not show this dialog box again.", the emulator doesn't supply power to the user system. To use this check box, start the emulator after turning on the power. 2. Emulator Mode The selection of the device, the specification of the mode, and the setting of the power supply are done in the [Emulator mode] page of the [Emulator Setting] dialog box. Device Select the device name in use from the [Device] combo box. The following items are selected in the [Mode] group box. Modes * Erase Flash and Connect This mode is used when there is no emulator program in the flash memory of the target device. In this mode, data of the flash memory of the target device is erased when the emulator is activated. Select this item when the emulator is firstly activated, the version of the emulator's software is updated, or the ID code is changed. * Keep Flash and Connect This mode is used when there is an emulator program in the flash memory of the target device. Enter the ID code specified above (`Erase Flash and Connect'). If an incorrect code is entered, all the programs on the flash memory will be erased. Note: When the emulator gets started in this mode after selecting "Do not show this dialog box again.", the initial values of the ID code is `0E8a' for the E8a emulator. If you use the ID code other than the initial value, do not use "Do not show this dialog box again.".
Rev. 1.00 Aug. 03, 2009 Page 16 of 24 REJ10J2023-0100
Section 5 Differences between the MCU and the Emulator
* Program Flash This mode is used when the emulator is used for programming the flash memory. Debugging the program is disabled. To download the load module, register it in the workspace. Note: In the H8/Tiny or H8/Super Low Power device, the ID code is not entered in the Program Flash mode. Power Supply When [Power Target from emulator. (MAX 300mA)] is checked, power will be supplied to the user system up to 300 mA. Then select 3.3 V or 5.0 V according to the power voltage of the user system. 3. Emulator Activation and ID Code In the H8/Tiny- or H8/Super Low Power-series MCU, the [System Clock] and [ID Code] dialog boxes are set when the emulator is activated. Setting the system clock Enter the clock value input to the board in use. The initial value differs in each MCU.
Figure 5.2 [System Clock] Dialog Box Setting the ID code When the emulator is activated in the [Erase Flash and Connect] mode, enter any hexadecimal four-digit ID code to be set (except for H'FFFF). The initial value is H'0E8A. When the emulator is activated in the [Keep Flash and Connect] mode, enter the correct ID code. If an incorrect ID code is entered, all the contents of the flash memory will be erased. In this case, restart the emulator in the [Erase Flash and Connect] mode.
Rev. 1.00 Aug. 03, 2009 Page 17 of 24 REJ10J2023-0100
Section 5 Differences between the MCU and the Emulator
Figure 5.3 [ID Code] Dialog Box 4. When the emulator system is initiated, it initializes the general registers and part of the control registers as shown in table 5.1. Table 5.1 Register Initial Values at Emulator Power-On
Register PC ER0 to ER6 ER7 CCR Initial Value Reset vector value in the vector address table H'0000 H'FF80 H'80
5. Low-power Mode During a user program break, the CPU operating frequency is forced to a system clock () for high-speed operation. 6. RES# Signal The MCU signals are only valid during user program execution started with clicking the GO or STEP-type button. During a user program break, the RES# signal is not sent to the MCUs. Note: Do not start user program execution or access the memory while control input signal (RES#) is being low. A TIMEOUT error will occur. 7. System Control Register In the emulator, the internal I/O registers can be accessed from the [IO] window. However, be careful when accessing the system control register. The emulator saves the register value of the system control register at a break and returns the value when the user program is executed. Since this is done during a break, do not rewrite the system control register in the [IO] window.
Rev. 1.00 Aug. 03, 2009 Page 18 of 24 REJ10J2023-0100
Section 5 Differences between the MCU and the Emulator
8. Memory Access during Emulation If the memory contents are referenced or modified during emulation, realtime emulation cannot be performed because the user program is temporarily halted. 9. The emulator communicates with the MCUs by using the RES#, P33 to P35, and P95 pins. These pins except for RES# cannot be used. 10. Sum Data Displayed in the Program Flash Mode Sum data, which is displayed in the `Program Flash' mode, is a value that data in the whole ROM areas has been added by byte (including data in the dedicated ROM area for the emulator). 11. Note on Executing the User Program The set value is rewritten since the emulator uses flash memory and watchdog timer registers during programming (Go, Step In, Step Out, or Step Over) of the flash memory. 12. The power consumed by the MCU can reach several milliamperes. This is because the user power supply drives ICs to make the communication signal level match the user-system power-supply voltage. The power consumed rises little during user program execution since the emulator does not perform communication; it rises more during a break. 13.Program Area for the Emulator Do not access a part of areas in the flash memory or the internal RAM since the emulator program uses these areas. If the contents of the program area for the emulator are changed, the emulator will not operate normally. In this case, restart the emulator with the Erase Flash and Connect mode. Table 5.2 Program Area for the E8a Emulator
MCU Name H8/38524F Program Area Flash memory: H'7000 to H'7FFF Internal RAM: H'F780 to H'FB7F Vector, etc.: H'0002 to H'0007, H'0014 to H'0015, H'7FF8 to H'7FF9
14. The emulator uses a two-word stack pointer for values stored on a user program break. Therefore, the stack area must accept two-word addresses.
Rev. 1.00 Aug. 03, 2009 Page 19 of 24 REJ10J2023-0100
Section 5 Differences between the MCU and the Emulator
15. Do not use an MCU that has been used for debugging. If the flash memory is rewritten many times, data may be lost due to retention problems after the emulator has been left for a few days and the data will be erased. If an error message is displayed, exchange the MCU for a new one. 16. Use of the internal oscillator circuit is available in the H8S/38524F. However, an external clock input from pin OSC1 or OSC2 is necessary when the emulator is connected. 17. Items Set in the [Configuration] Dialog Box The emulator operation conditions are set in the [Configuration] dialog box.
Figure 5.4 [Configuration] Dialog Box ([System] Page)
Rev. 1.00 Aug. 03, 2009 Page 20 of 24 REJ10J2023-0100
Section 5 Differences between the MCU and the Emulator
Items that can be displayed in this dialog box are listed below. [Device] combo box [Emulation mode] combo box Displays the MCU name. Selects the emulation mode at user program execution. Select Normal to perform normal emulation. Select No break to disable PC breakpoint or break condition settings during emulation. [Step option] combo box Sets the step interrupt option. Disable interrupts during single step execution: Disables *1 interrupts during step execution. Enable interrupts during single step execution: Enables *1 interrupts during step execution. [User interface clock] combo box [Flash memory synchronization] combo box Displays the transfer clock of the user interface. Selects whether or not the contents of the flash memory are acquired by the emulator when the user program is stopped or the position where the PC break is set is put back as the original code. When the flash memory is not programmed by the user program, its contents need not be acquired by the emulator.
Rev. 1.00 Aug. 03, 2009 Page 21 of 24 REJ10J2023-0100
Section 5 Differences between the MCU and the Emulator
If there is no problem with the state that the program in the flash memory has been replaced as the PC break code, the position where the PC break is set needs not be put back as the original code. Disable: Read or program is not performed for the flash memory except when the emulator is activated, the flash memory area is modified, and the settings of the PC break to the flash memory area are changed. PC to flash memory: When the user program is stopped, the specified PC break code is replaced as the original instruction. Select this option if there is a problem with the state that the program in the flash memory has been replaced as the PC break code. Flash memory to PC: When the user program is stopped, the contents of the flash memory are read by the emulator. Select this option if the flash memory is reprogrammed by the user program. PC to flash memory, Flash memory to PC: When the user program is stopped, the contents of the flash memory are read by the emulator and the specified PC break code is replaced as the original instruction. Select this option if the flash memory is reprogrammed by the user program and there is a problem with the state that the program in the flash memory has been replaced as the PC break code. [Step Over option] combo box Enables or disables programming of the flash memory while executing step operation. Programming of the flash memory: Uses a software break for step operation (e.g. Step Over) and enables programming of the flash memory. No Programming of the flash memory: Uses Break Condition for step operation (e.g. Step Over) and disables programming of the flash memory*2. [Flash memory write after download] group box Enables or disables programming of the flash memory after downloading the program. Disable: Disables programming of the flash memory after downloading the program. Enable: Enables programming of the flash memory after downloading the program.
Rev. 1.00 Aug. 03, 2009 Page 22 of 24 REJ10J2023-0100
Section 5 Differences between the MCU and the Emulator
Notes: 1. Includes interrupts in a break. 2. When Step Over is performed after selecting [No Programming of the flash memory] for [Step Over option], the instruction that follows a JSR, BSR, or TRAPA instruction will also be executed. If there are consecutive JSR, BSR, or TRAPA instructions, execution proceeds until it reaches an instruction that is not JSR, BSR, or TRAPA. (When there are consecutive function calls in C language, the program steps all of these functions.) 18. Initializing the Internal I/O Register with the Reset_CPU Function Be sure to initialize the internal I/O registers shown below by the user program since they are not initialized by selecting [Debug] - [Reset CPU] or using the RESET command. Table 5.3 Registers Not Initialized
MCU Name H8/38524F Register Not Initialized SYSCR1, SYSCR2, IEGR1, IENR2, IENR1, IRR1, IRR2, IWPR, TMW, CKSTPR1, CKSTPR2
Rev. 1.00 Aug. 03, 2009 Page 23 of 24 REJ10J2023-0100
Section 5 Differences between the MCU and the Emulator
Rev. 1.00 Aug. 03, 2009 Page 24 of 24 REJ10J2023-0100
Notes on Connecting the H8/38537F
Notes on Connecting the H8/38537F
Rev. 1.00 Aug. 03, 2009 Page 1 of 22 REJ10J2023-0100
Notes on Connecting the H8/38537F
Rev. 1.00 Aug. 03, 2009 Page 2 of 22 REJ10J2023-0100
Section 1 Inside the E8a Emulator User's Manual
Section 1 Inside the E8a Emulator User's Manual
The E8a emulator (hereafter referred to as E8a emulator in this document) manual consists of two documents: the E8a User's Manual and the E8a Additional Document for User's Manual (this document). Be sure to read BOTH documents before using the E8a emulator. (1) E8a Emulator User's Manual The E8a Emulator User's Manual describes the hardware specifications and how to use the emulator debugger. E8a emulator hardware specifications Connecting the E8a emulator to the host computer or user system Operating the E8a emulator debugger Tutorial: From starting up the E8a emulator debugger to debugging (2) E8a Additional Document for User's Manual The E8a Additional Document for User's Manual describes content dependent on the MCUs and precautionary notes. Example of the E8a emulator connection or interface circuit necessary for designing the hardware Notes on using the E8a emulator Setting the E8a emulator debugger during startup
Rev. 1.00 Aug. 03, 2009 Page 3 of 22 REJ10J2023-0100
Section 1 Inside the E8a Emulator User's Manual
Rev. 1.00 Aug. 03, 2009 Page 4 of 22 REJ10J2023-0100
Section 2 Connecting the Emulator with the User System
Section 2 Connecting the Emulator with the User System
Before connecting an E8a emulator (hereafter referred to as emulator) with the user system, a connector must be installed in the user system so that an user system interface cable can be connected. When designing the user system, refer to the connector and recommended circuits shown in this manual. Before designing the user system, be sure to read the E8a emulator user's manual and the hardware manual for related MCUs. Table 2.1 shows the recommended connector for the emulator. Table 2.1 Recommended Connector
Type Number 2514-6002 Manufacturer 3M Limited Specifications 14-pin straight type
Connect pins 2, 4, 6, 10, 12, and 14 of the user system connector to GND firmly on the PCB. These pins are used as electrical GND and to monitor the connection of the user system connector. Note the pin assignments of the user system connector.
User system interface cable
User system connector
User system Pin 2
Pin 1
Figure 2.1 Connecting the User System Interface Cable to the User System
Rev. 1.00 Aug. 03, 2009 Page 5 of 22 REJ10J2023-0100
Section 2 Connecting the Emulator with the User System
Notes: 1. The pin number assignments of the 14-pin connector differ from those of the E10AUSB emulator; however, the physical location is the same. 2. Do not place any components within 3 mm of the connector. 3. When the emulator is used in the [Program Flash] mode, connect the emulator similarly to the user system.
Rev. 1.00 Aug. 03, 2009 Page 6 of 22 REJ10J2023-0100
Section 3 Pin Assignments of the E8a Connector
Section 3 Pin Assignments of the E8a Connector
Figure 3.1 shows the pin assignments of the emulator's connector.
Signal Name Pin No. 1 Pin 1 mark Connector 2 3 4 5 6 7 8 9 10 Top view Pin 1 mark 11 12 13 14 H8/38537F P85 Vss N.C.*2 Vss P87 Vss P32 Vcc N.C.*2 Vss P86 Vss RES#*1 Vss
Pin 2 Pin 1
Pin 14 Pin 13
Notes: 1. The symbol (#) means that the signal is active-low. 2. These pins are not used in the H8/300H Super Low Power series. Do not connect anything to these pins.
Figure 3.1 Pin Assignments of the Emulator's Connector
Rev. 1.00 Aug. 03, 2009 Page 7 of 22 REJ10J2023-0100
Section 3 Pin Assignments of the E8a Connector
Rev. 1.00 Aug. 03, 2009 Page 8 of 22 REJ10J2023-0100
Section 4 Example of Emulator Connection
Section 4 Example of Emulator Connection
Figures 4.1 shows examples of emulator connection to the MCU.
Pulled up at 4.7 k or more
Vcc Vcc
Vcc Vcc Vcc Vcc
P32 P86 P87 P85 Vcc User logic RES# Pulled up at 4.7 k or more *
P32 P86 P87 P85 H8/38537F
RES#
TEST Vss
User system Connector 14 pins with a 2.54-mm pitch
*: Open-collector buffer
Figure 4.1 Example of Emulator Connection (H8/38537F)
Rev. 1.00 Aug. 03, 2009 Page 9 of 22 REJ10J2023-0100
Section 4 Example of Emulator Connection
Notes: 1. P85 to P87 pins (H8/38537F) are used by the emulator. Pull up and connect the emulator and MCU pins.
H8/38537F User system connector Vcc 4.7 k Pins 1, 5, and 11 P85 to P87
Figure 4.2 Connection of Emulator and P85 to P87 Pins (H8/38537F) 2. The P32 pin (H8/38537F) are used for forced break control by the emulator. Connect the emulator and MCU pins directly.
H8/38537F User system connector Vcc 4.7 k Pin 7 P32
Figure 4.3 Connection of Emulator and P32 Pin (H8/38537F) 3. The RES# pin is used by the emulator. Create the following circuit by connecting the open-collector output buffer so that reset input can be accepted from the emulator.
Example of reset circuit User system connector Vcc User logic * 4.7 k H8/38537F
Pin 13 *Open-collector output buffer
RES# pin
Figure 4.4 Example of a Reset Circuit
Rev. 1.00 Aug. 03, 2009 Page 10 of 22 REJ10J2023-0100
Section 4 Example of Emulator Connection
4. Connect Vss and Vcc with the Vss and Vcc of the MCU, respectively. The input voltage, Vcc, must be connected to the user system Vcc (power supply). The amount of voltage permitted to input to Vcc must be within the guaranteed range of the microcomputer. 5. Connect nothing with N.C.
WARNING
In the power-supply mode, connect the emulator after checking that the power-supply circuit on the user system is not closed or the pin number assignments of the user system connector is correct. Failure to do so will result in a FIRE HAZARD and will damage the host computer, the emulator, and the user system.
6. Figures 4.5 shows the interface circuit in the E8a emulator. Use these figures as references when determining the pull-up resistance value.
Rev. 1.00 Aug. 03, 2009 Page 11 of 22 REJ10J2023-0100
Section 4 Example of Emulator Connection
User system connector Power-supply circuit (only used for the power-supply mode) Emulator control circuit 100 k x3 1 M 100 k Vcc 8
22
P87
1
74LVC125B 22
P85
11
74LVC125B 22 NMI#
7
74LVC125B Vcc 3.3 V
SN74LVC2T45 3.3 V Vcc 22 SN74LVC2T45 3.3 V Vcc 22 3.3 V 10 k SN74LVC2T45 2CS2462 10 k RES# 13 P86 5
Notes: 1. This figure omits the test circuits and pin numbers 2, 3, 4, 6, 9, 10, 12, and 14 for the user connector that are not used when H8/300H Super Low Power series is connected. 2. The power of 74LVC125B is supplied from Vcc in the user connector (or in the power-supply circuit during power-supply mode). 3. The pin numbers and corresponding MCU pin names are listed below. Pin No. 1 5 7 8 11 13 H8/38537F P85 P87 P32 Vcc P86 RES#
Figure 4.5 Interface Circuit in the E8a Emulator (Reference)
Rev. 1.00 Aug. 03, 2009 Page 12 of 22 REJ10J2023-0100
Section 5 Differences between the MCU (H8/38537F) and the Emulator
Section 5 Differences between the MCU (H8/38357F) and the Emulator
This section describes the differences between the emulator and MCU operations. 1. [Emulator Setting] Dialog Box The [Emulator Setting] dialog box is provided for setting the items that need to be set when the emulator starts up (settings are saved in the session).
Figure 5.1 [Emulator Setting] Dialog Box
Rev. 1.00 Aug. 03, 2009 Page 13 of 22 REJ10J2023-0100
Section 5 Differences between the MCU (H8/38537F) and the Emulator
To keep the [Emulator Setting] dialog box closed next time the emulator is started, check "Do not show this dialog box again." at the bottom of the [Emulator Setting] dialog box. You can open the [Emulator Setting] dialog box using either one of the following methods: After the emulator gets started, select Menu - [Setup] -> [Emulator] -> [Emulator Setting...]. Start the emulator while holding down the Ctrl key. After the emulator gets started and an error occurred, restart the emulator. When you check "Do not show this dialog box again.", the emulator doesn't supply power to the user system. To use this check box, start the emulator after turning on the power. 2. Emulator Mode The selection of the device, the specification of the mode, and the setting of the power supply are done in the [Emulator mode] page of the [Emulator Setting] dialog box. Device Select the device name in use from the [Device] combo box. The following items are selected in the [Mode] group box. Modes * Erase Flash and Connect This mode is used when there is no emulator program in the flash memory of the target device. In this mode, data of the flash memory of the target device is erased when the emulator is activated. Select this item when the emulator is firstly activated, the version of the emulator's software is updated, or the ID code is changed. * Keep Flash and Connect This mode is used when there is an emulator program in the flash memory of the target device. Enter the ID code specified above (`Erase Flash and Connect'). If an incorrect code is entered, all the programs on the flash memory will be erased. Note: When the emulator gets started in this mode after selecting "Do not show this dialog box again.", the initial values of the ID code is `0E8a' for the E8a emulator. If you use the ID code other than the initial value, do not use "Do not show this dialog box again.".
Rev. 1.00 Aug. 03, 2009 Page 14 of 22 REJ10J2023-0100
Section 5 Differences between the MCU (H8/38537F) and the Emulator
* Program Flash This mode is used when the emulator is used for programming the flash memory. Debugging the program is disabled. To download the load module, register it in the workspace. Note: In the H8/Tiny or H8/Super Low Power device, the ID code is not entered in the Program Flash mode. Power Supply When [Power Target from emulator. (MAX 300mA)] is checked, power will be supplied to the user system up to 300 mA. Then select 3.3 V or 5.0 V according to the power voltage of the user system. 3. Emulator Activation and ID Code In the H8/Tiny- or H8/Super Low Power-series MCU, the [System Clock] and [ID Code] dialog boxes are set when the emulator is activated. Setting the system clock Enter the clock value input to the board in use. The initial value differs in each MCU.
Figure 5.2 [System Clock] Dialog Box Setting the ID code When the emulator is activated in the [Erase Flash and Connect] mode, enter any * hexadecimal four-digit ID code to be set (except for H'FFFF). The initial value is H'0E8A. When the emulator is activated in the [Keep Flash and Connect] mode, enter the correct ID code. If an incorrect ID code is entered, all the contents of the flash memory will be erased. In this case, restart the emulator in the [Erase Flash and Connect] mode.
Rev. 1.00 Aug. 03, 2009 Page 15 of 22 REJ10J2023-0100
Section 5 Differences between the MCU (H8/38537F) and the Emulator
Figure 5.3 [ID Code] Dialog Box 4. When the emulator system is initiated, it initializes the general registers and part of the control registers as shown in table 5.1. Table 5.1 Register Initial Values at Emulator Power-On
Register PC R0 to R6 R7 CCR Initial Value Reset vector value in the vector address table H'0000 H'FF80 H'80
5. Low-power Mode During a user program break, the CPU operating frequency is forced to a system clock () for high-speed operation. 6. RES# Signal The MCU signals are only valid during user program execution started with clicking the GO or STEP-type button. During a user program break, the RES# signal is not sent to the MCUs. Note: Do not start user program execution or access the memory while control input signal (RES#) is being low. A TIMEOUT error will occur.
Rev. 1.00 Aug. 03, 2009 Page 16 of 22 REJ10J2023-0100
Section 5 Differences between the MCU (H8/38537F) and the Emulator
7. System Control Register In the emulator, the internal I/O registers can be accessed from the [IO] window. However, be careful when accessing the system control register. The emulator saves the register value of the system control register at a break and returns the value when the user program is executed. Since this is done during a break, do not rewrite the system control register in the [IO] window. 8. Memory Access during Emulation If the memory contents are referenced or modified during emulation, realtime emulation cannot be performed because the user program is temporarily halted. 9. The emulator communicates with the MCUs by using the P85 to P87 and P32 (H8/38537F), and RES# pins. These pins except for RES# cannot be used. 10. Sum Data Displayed in the Program Flash Mode Sum data, which is displayed in the `Program Flash' mode, is a value that data in the whole ROM areas has been added by byte (including data in the dedicated ROM area for the emulator). 11. Note on Executing the User Program The set value is rewritten since the emulator uses flash memory and watchdog timer registers during programming (Go, Step In, Step Out, or Step Over) of the flash memory. 12. The power consumed by the MCU can reach several milliamperes. This is because the user power supply drives ICs to make the communication signal level match the user-system power-supply voltage. The power consumed rises little during user program execution since the emulator does not perform communication; it rises more during a break. 13. Program Area for the Emulator Do not access a part of areas in the flash memory or the internal RAM since the emulator program uses these areas. If the contents of the program area for the emulator are changed, the emulator will not operate normally. In this case, restart the emulator with the Erase Flash and Connect mode. Table 5.2 Program Area for the E8a Emulator
MCU Name H8/38537F Program Area Flash memory: H'E000 to H'EFFF Internal RAM: H'F300 to H'F6FF Vector, etc.: H'0002 to H'0007, H'EFF8 to H'EFF9
Rev. 1.00 Aug. 03, 2009 Page 17 of 22 REJ10J2023-0100
Section 5 Differences between the MCU (H8/38537F) and the Emulator
14. The emulator uses a two-word stack pointer for values stored on a user program break. Therefore, the stack area must accept two-word addresses. 15. Do not use an MCU that has been used for debugging. If the flash memory is rewritten many times, data may be lost due to retention problems after the emulator has been left for a few days and the data will be erased. If an error message is displayed, exchange the MCU for a new one.
Rev. 1.00 Aug. 03, 2009 Page 18 of 22 REJ10J2023-0100
Section 5 Differences between the MCU (H8/38537F) and the Emulator
16. Items Set in the [Configuration] Dialog Box The emulator operation conditions are set in the [Configuration] dialog box.
Figure 5.4 [Configuration] Dialog Box ([System] Page)
Rev. 1.00 Aug. 03, 2009 Page 19 of 22 REJ10J2023-0100
Section 5 Differences between the MCU (H8/38537F) and the Emulator
Items that can be displayed in this dialog box are listed below. [Device] combo box [Emulation mode] combo box Displays the MCU name. Selects the emulation mode at user program execution. Select Normal to perform normal emulation. Select No break to disable PC breakpoint or break condition settings during emulation. [Step option] combo box Sets the step interrupt option. Disable interrupts during single step execution: Disables *1 interrupts during step execution. Enable interrupts during single step execution: Enables *1 interrupts during step execution. [User interface clock] combo box [Flash memory synchronization] combo box Displays the transfer clock of the user interface.
Selects whether or not the contents of the flash memory are acquired by the emulator when the user program is stopped or the position where the PC break is set is put back as the original code. When the flash memory is not programmed by the user program, its contents need not be acquired by the emulator.
Rev. 1.00 Aug. 03, 2009 Page 20 of 22 REJ10J2023-0100
Section 5 Differences between the MCU (H8/38537F) and the Emulator
If there is no problem with the state that the program in the flash memory has been replaced as the PC break code, the position where the PC break is set needs not be put back as the original code. Disable: Read or program is not performed for the flash memory except when the emulator is activated, the flash memory area is modified, and the settings of the PC break to the flash memory area are changed. PC to flash memory: When the user program is stopped, the specified PC break code is replaced as the original instruction. Select this option if there is a problem with the state that the program in the flash memory has been replaced as the PC break code. Flash memory to PC: When the user program is stopped, the contents of the flash memory are read by the emulator. Select this option if the flash memory is reprogrammed by the user program. PC to flash memory, Flash memory to PC: When the user program is stopped, the contents of the flash memory are read by the emulator and the specified PC break code is replaced as the original instruction. Select this option if the flash memory is reprogrammed by the user program and there is a problem with the state that the program in the flash memory has been replaced as the PC break code. [Step Over option] combo box Enables or disables programming of the flash memory while executing step operation. Programming of the flash memory: Uses a software break for step operation (e.g. Step Over) and enables programming of the flash memory. No Programming of the flash memory: Uses Break Condition for step operation (e.g. Step Over) and disables programming *2 of the flash memory .
Rev. 1.00 Aug. 03, 2009 Page 21 of 22 REJ10J2023-0100
Section 5 Differences between the MCU (H8/38537F) and the Emulator
[Flash memory write after download] group box
Enables or disables programming of the flash memory after downloading the program. Disable: Disables programming of the flash memory after downloading the program. Enable: Enables programming of the flash memory after downloading the program.
Notes: 1. Includes interrupts in a break. 2. When Step Over is performed after selecting [No Programming of the flash memory] for [Step Over option], the instruction that follows a JSR, BSR, or TRAPA instruction will also be executed. If there are consecutive JSR, BSR, or TRAPA instructions, execution proceeds until it reaches an instruction that is not JSR, BSR, or TRAPA. (When there are consecutive function calls in C language, the program steps all of these functions). 17. Initializing the Internal I/O Register with the Reset_CPU Function Be sure to initialize the internal I/O registers shown below by the user program since they are not initialized by selecting [Debug] - [Reset CPU] or using the RESET command. Table 5.3 Registers Not Initialized
MCU Name H8/38537F Register Not Initialized SYSCR1, SYSCR2, IEGR, IENR2, IENR1, IRR1, IRR2, IWPR, CKSTPR1, CKSTPR2
18. Available MCUs for E8a Emulator The H8/38534F is also available for the emulator. When the emulator is activated, set the MCU to be selected as shown in table 5.4. Note that, however, an error will not be displayed even if a program which is larger than the internal ROM capacity is downloaded. Table 5.4 List of Available MCUs
MCU to be Used H8/38534F MCU to be Selected H8/38537F
19. Restriction on Software Write Enable (SWE) Bit If the SWE bit is set to 1 during execution of the user program, a communication timeout error will occur. Do not set this bit to 1.
Rev. 1.00 Aug. 03, 2009 Page 22 of 22 REJ10J2023-0100
Notes on Connecting the H8/38704F
Notes on Connecting the H8/38704F
Rev. 1.00 Aug. 03, 2009 Page 1 of 22 REJ10J2023-0100
Notes on Connecting the H8/38704F
Rev. 1.00 Aug. 03, 2009 Page 2 of 22 REJ10J2023-0100
Section 1 Inside the E8a Emulator Users Manual
Section 1 Inside the E8a Emulator User's Manual
The E8a emulator (hereafter referred to as E8a in this document) manual consists of two documents: the E8a User's Manual and the E8a Additional Document for User's Manual (this document). Be sure to read BOTH documents before using the E8a emulator. (1) E8a Emulator User's Manual The E8a Emulator User's Manual describes the hardware specifications and how to use the emulator debugger. E8a emulator hardware specifications Connecting the E8a emulator to the host computer or user system Operating the E8a emulator debugger Tutorial: From starting up the E8a emulator debugger to debugging (2) E8a Additional Document for User's Manual The E8a Additional Document for User's Manual describes content dependent on the MCUs and precautionary notes. Example of the E8a emulator connection or interface circuit necessary for designing the hardware Notes on using the E8a emulator Setting the E8a emulator debugger during startup
Rev. 1.00 Aug. 03, 2009 Page 3 of 22 REJ10J2023-0100
Section 1 Inside the E8a Emulator Users Manual
Rev. 1.00 Aug. 03, 2009 Page 4 of 22 REJ10J2023-0100
Section 2 Connecting the Emulator with the User System
Section 2 Connecting the Emulator with the User System
Before connecting an E8a emulator (hereafter referred to as emulator) with the user system, a connector must be installed in the user system so that a user system interface cable can be connected. When designing the user system, refer to the connector and recommended circuits shown in this manual. Before designing the user system, be sure to read the E8a emulator user's manual and the hardware manual for related MCUs. Table 2.1 shows the recommended connector for the emulator. Table 2.1 Recommended Connector
Type Number 2514-6002 Manufacturer 3M Limited Specifications 14-pin straight type
Connect pins 2, 4, 6, 10, 12, and 14 of the user system connector to GND firmly on the PCB. These pins are used as electrical GND and to monitor the connection of the user system connector. Note the pin assignments of the user system connector.
User system interface cable
User system connector
User system Pin 2
Pin 1
Figure 2.1 Connecting the User System Interface Cable to the User System
Rev. 1.00 Aug. 03, 2009 Page 5 of 22 REJ10J2023-0100
Section 2 Connecting the Emulator with the User System
Notes:
1. 2. 3.
The pin number assignments of the 14-pin connector differ from those of the E10A-USB emulator; however, the physical location is the same. Do not place any components within 3 mm of the connector. When the emulator is used in the [Program Flash] mode, connect the emulator similarly to the user system.
Rev. 1.00 Aug. 03, 2009 Page 6 of 22 REJ10J2023-0100
Section 3 Pin Assignments of the E8a Connector
Section 3 Pin Assignments of the E8a Connector
Figure 3.1 shows the pin assignments of the connector.
Pin No. 1 Pin 1 mark Connector 2 3 4 5 6 7 8 9 10 Top view Pin 1 mark 11 12 13 14 MCU Signal P33 Vss N.C. *2 Vss P35 Vss P95 Vcc N.C. *2 Vss P34 Vss RES# *1 Vss
Pin 2 Pin 1
Pin 14 Pin 13
Notes: 1. The symbol (#) means that the signal is active-low. 2. These pins are not used in the H8/300H Super Low Power series. Do not connect anything to these pins.
Figure 3.1 Pin Assignments of the Connector
Rev. 1.00 Aug. 03, 2009 Page 7 of 22 REJ10J2023-0100
Section 3 Pin Assignments of the E8a Connector
Rev. 1.00 Aug. 03, 2009 Page 8 of 22 REJ10J2023-0100
Section 4 Example of Emulator Connection
Section 4 Example of Emulator Connection
Figure 4.1 shows an example of emulator connection to the MCU.
Pulled up at 4.7 k or more
Vcc Vcc
Vcc Vcc Vcc Vcc
P95 P34 P35 P33 Vcc User logic /RES Pulled up at 4.7 k or more *
P95 P34 P35 P33 MCU
/RES
Vss
User system Connector 14 pins with a 2.54-mm pitch
*: Open-collector buffer
Figure 4.1 Example of Emulator Connection
Rev. 1.00 Aug. 03, 2009 Page 9 of 22 REJ10J2023-0100
Section 4 Example of Emulator Connection
Notes: 1. P33 to P35 pins are used by the emulator. Pull up and connect the emulator and MCU pins.
MCU User system connector Vcc 4.7 k Pins 1, 5, and 11 P33 to P35
Figure 4.2 Connection of Emulator and P33 to P35 Pins 2. The P95 pin is used for forced break control by the emulator. Connect the emulator and MCU pins directly.
MCU User system connector Vcc 4.7 k Pin 7 P95
Figure 4.3 Connection of Emulator and P95 Pin 3. The RES# pin is used by the emulator. Create the following circuit by connecting the open-collector output buffer so that reset input can be accepted from the emulator.
Example of reset circuit User system connector Vcc User logic * 4.7 k MCU
Pin 13 *Open-collector output buffer
RES# pin
Figure 4.4 Example of a Reset Circuit
Rev. 1.00 Aug. 03, 2009 Page 10 of 22 REJ10J2023-0100
Section 4 Example of Emulator Connection
4. Connect Vss and Vcc with the Vss and Vcc of the MCU, respectively (within the guaranteed range of the microcomputer). When the power-supply mode is used, the power is supplied to the user system. Check that the power consumption or voltage of the user system is within the available range of E8a and avoid a problem such as closing of the power-supply circuit. 5. Connect nothing with N.C.
WARNING
In the power-supply mode, connect the emulator after checking that the power-supply circuit on the user system is not closed or the pin number assignments of the user system connector is correct. Failure to do so will result in a FIRE HAZARD and will damage the host computer, the emulator, and the user system.
6. Figure 4.5 shows the interface circuit in the E8a emulator. Use this figure as a reference when determining the pull-up resistance value.
Rev. 1.00 Aug. 03, 2009 Page 11 of 22 REJ10J2023-0100
Section 4 Example of Emulator Connection
User system connector Power-supply circuit (only used for the power-supply mode) Emulator control circuit 100 k x3 1 M 100 k Vcc 8
22
P33
1
74LVC125B 22
P34
11
74LVC125B 22 P95
7
74LVC125B Vcc 3.3 V
SN74LVC2T45 3.3 V Vcc 22 SN74LVC2T45 3.3 V Vcc 22 3.3 V 10 k SN74LVC2T45 2CS2462 10 k RES# 13 P35 5
Notes: 1. This figure omits the test circuits and pin numbers 3, 4, 9, and 14 for the user connector that are not used when H8/Tiny series is connected. 2. The power of 74LVC125B is supplied from Vcc in the user connector (or in the power-supply circuit during power-supply mode).
Figure 4.5 Interface Circuit in the E8a Emulator (Reference)
Rev. 1.00 Aug. 03, 2009 Page 12 of 22 REJ10J2023-0100
Section 5 Differences between the MCU (H8/38704F) and the Emulator
Section 5 Differences between the MCU (H8/38704F) and the Emulator
This section describes the differences between the emulator and MCU operations. 1. [Emulator Setting] Dialog Box The [Emulator Setting] dialog box is provided for setting the items that need to be set when the emulator starts up (settings are saved in the session).
Figure 5.1 [Emulator Setting] Dialog Box
Rev. 1.00 Aug. 03, 2009 Page 13 of 22 REJ10J2023-0100
Section 5 Differences between the MCU (H8/38704F) and the Emulator
To keep the [Emulator Setting] dialog box closed next time the emulator is started, check "Do not show this dialog box again." at the bottom of the [Emulator Setting] dialog box. You can open the [Emulator Setting] dialog box using either one of the following methods: After the emulator gets started, select Menu - [Setup] -> [Emulator] -> [Emulator Setting...]. Start the emulator while holding down the Ctrl key. After the emulator gets started and an error occurred, restart the emulator. When you check "Do not show this dialog box again.", the emulator doesn't supply power to the user system. To use this check box, start the emulator after turning on the power. 2. Emulator Mode The selection of the device, the specification of the mode, and the setting of the power supply are done in the [Emulator mode] page of the [Emulator Setting] dialog box. Device Select the device name in use from the [Device] combo box. The following items are selected in the [Mode] group box. Modes * Erase Flash and Connect This mode is used when there is no emulator program in the flash memory of the target device. In this mode, data of the flash memory of the target device is erased when the emulator is activated. Select this item when the emulator is firstly activated, the version of the emulator's software is updated, or the ID code is changed. * Keep Flash and Connect This mode is used when there is an emulator program in the flash memory of the target device. Enter the ID code specified above (`Erase Flash and Connect'). If an incorrect code is entered, all the programs on the flash memory will be erased. Note: When the emulator gets started in this mode after selecting "Do not show this dialog box again.", the initial value of the ID code is `0E8A'. If you use the ID code other than the initial value, do not use "Do not show this dialog box again.".
Rev. 1.00 Aug. 03, 2009 Page 14 of 22 REJ10J2023-0100
Section 5 Differences between the MCU (H8/38704F) and the Emulator
* Program Flash This mode is used when the emulator is used for programming the flash memory. Debugging the program is disabled. To download the load module, register it in the workspace. Note: In the H8/Tiny or H8/Super Low Power device, the ID code is not entered in the Program Flash mode. Power Supply When [Power Target from emulator. (MAX 300mA)] is checked, power will be supplied to the user system up to 300 mA. Then select 3.3 V or 5.0 V according to the power voltage of the user system. 3. Emulator Activation and ID Code In the H8/Tiny- or H8/Super Low Power-series MCU, the [System Clock] and [ID Code] dialog boxes are set when the emulator is activated. Setting the system clock Enter the clock value input to the board in use. The initial value differs in each MCU.
Figure 5.2 [System Clock] Dialog Box Setting the ID code When the emulator is activated in the [Erase Flash and Connect] mode, enter any hexadecimal four-digit ID code to be set (except for H'FFFF). The initial value is H'0E8A. When the emulator is activated in the [Keep Flash and Connect] mode, enter the correct ID code. If an incorrect ID code is entered, all the contents of the flash memory will be erased. In this case, restart the emulator in the [Erase Flash and Connect] mode.
Rev. 1.00 Aug. 03, 2009 Page 15 of 22 REJ10J2023-0100
Section 5 Differences between the MCU (H8/38704F) and the Emulator
Figure 5.3 [ID Code] Dialog Box 4. When the emulator system is initiated, it initializes the general registers and part of the control registers as shown in table 5.1. Table 5.1 Register Initial Values at Emulator Power-On
Register PC ER0 to ER6 ER7 (SP) CCR Initial Value Reset vector value in the vector address table H'0000 H'FF80 H'80
5. Low-Power Mode During a user program break, the CPU operating frequency is forced to a system clock () for high-speed operation. 6. RES# Signal The MCU signals are only valid during user program execution started with clicking the GO or STEP-type button. During a user program break, the RES# signal is not sent to the MCUs. Note: Do not start user program execution or access the memory while control input signal (RES#) is being low. A TIMEOUT error will occur. 7. System Control Register In the emulator, the internal I/O registers can be accessed from the [IO] window. However, be careful when accessing the system control register. The emulator saves the register value of the system control register at a break and returns the value when the user program is executed. Since this is done during a break, do not rewrite the system control register in the [IO] window.
Rev. 1.00 Aug. 03, 2009 Page 16 of 22 REJ10J2023-0100
Section 5 Differences between the MCU (H8/38704F) and the Emulator
8. Memory Access during Emulation If the memory contents are referenced or modified during emulation, realtime emulation cannot be performed because the user program is temporarily halted. 9. The emulator communicates with the MCUs by using the RES#, P33 to P35, and P95 pins. These pins except for RES# cannot be used 10. Sum Data Displayed in the Program Flash Mode Sum data, which is displayed in the `Program Flash' mode, is a value that data in the whole ROM areas has been added by byte (including data in the dedicated ROM area for the emulator). 11. Note on Executing the User Program The set value is rewritten since the emulator uses flash memory and watchdog timer registers during programming (Go, Step In, Step Out, or Step Over) of the flash memory. 12. The power consumed by the MCU can reach several milliamperes. This is because the user power supply drives ICs to make the communication signal level match the user-system power-supply voltage. The power consumed rises little during user program execution since the emulator does not perform communication; it rises more during a break. 13. Program Area for the Emulator Do not access a part of areas in the flash memory or the internal RAM since the emulator program uses these areas. If the contents of the program area for the emulator are changed, the emulator will not operate normally. In this case, restart the emulator with the Erase Flash and Connect mode. Table 5.2 Program Area for the Emulator
MCU Name H8/38704F Program Area Flash memory: H'7000 to H'7FFF Internal RAM: H'F780 to H'FB7F Vector, etc.: H'0002 to H'0007, H'0014 to H'0015, H'7FF8 to H'7FF9
14. The emulator uses a two-word stack pointer for values stored on a user program break. Therefore, the stack area must accept two-word addresses. 15. Do not use an MCU that has been used for debugging. If the flash memory is rewritten many times, data may be lost due to retention problems after the emulator has been left for a few days and the data will be erased. If an error message is displayed, exchange the MCU for a new one.
Rev. 1.00 Aug. 03, 2009 Page 17 of 22 REJ10J2023-0100
Section 5 Differences between the MCU (H8/38704F) and the Emulator
16. Items Set in the [Configuration] Dialog Box The emulator operation conditions are set in the [Configuration] dialog box.
Figure 5.4 [Configuration] Dialog Box ([Emulator System] Page)
Rev. 1.00 Aug. 03, 2009 Page 18 of 22 REJ10J2023-0100
Section 5 Differences between the MCU (H8/38704F) and the Emulator
Items that can be displayed in this dialog box are listed below. [Device] combo box [Emulation mode] combo box Displays the MCU name. Selects the emulation mode at user program execution. Select Normal to perform normal emulation. Select No break to disable PC breakpoint or break condition settings during emulation. [Step option] combo box Sets the step interrupt option. Disable interrupts during single step execution: Disables *1 interrupts during step execution. Enable interrupts during single step execution: Enables *1 interrupts during step execution. [User interface clock] combo box [Flash memory synchronization] combo box Displays the transfer clock of the user interface. Selects whether or not the contents of the flash memory are acquired by the emulator when the user program is stopped or the position where the PC break is set is put back as the original code. When the flash memory is not programmed by the user program, its contents need not be acquired by the emulator.
Rev. 1.00 Aug. 03, 2009 Page 19 of 22 REJ10J2023-0100
Section 5 Differences between the MCU (H8/38704F) and the Emulator
If there is no problem with the state that the program in the flash memory has been replaced as the PC break code, the position where the PC break is set needs not be put back as the original code. Disable: Read or program is not performed for the flash memory except when the emulator is activated, the flash memory area is modified, and the settings of the PC break to the flash memory area are changed. PC to flash memory: When the user program is stopped, the specified PC break code is replaced as the original instruction. Select this option if there is a problem with the state that the program in the flash memory has been replaced as the PC break code. Flash memory to PC: When the user program is stopped, the contents of the flash memory are read by the emulator. Select this option if the flash memory is reprogrammed by the user program. PC to flash memory, Flash memory to PC: When the user program is stopped, the contents of the flash memory are read by the emulator and the specified PC break code is replaced as the original instruction. Select this option if the flash memory is reprogrammed by the user program and there is a problem with the state that the program in the flash memory has been replaced as the PC break code. [Step Over option] combo box Enables or disables programming of the flash memory while executing step operation. Programming of the flash memory: Uses a software break for step operation (e.g. Step Over) and enables programming of the flash memory. No Programming of the flash memory: Uses Break Condition for step operation (e.g. Step Over) and disables programming of the flash memory*2. [Flash memory write after download] group box Enables or disables programming of the flash memory after downloading the program. Disable: Disables programming of the flash memory after downloading the program. Enable: Enables programming of the flash memory after downloading the program.
Rev. 1.00 Aug. 03, 2009 Page 20 of 22 REJ10J2023-0100
Section 5 Differences between the MCU (H8/38704F) and the Emulator
[Short break] group box
Enables or disables memory access during user program execution. Disable: Disables memory access during user program execution. Enable: Enables memory access during user program execution.
Notes: 1. Includes interrupts in a break. 2. When Step Over is performed after selecting [No Programming of the flash memory] for [Step Over option], the instruction that follows a JSR, BSR, or TRAPA instruction will also be executed. If there are consecutive JSR, BSR, or TRAPA instructions, execution proceeds until it reaches an instruction that is not JSR, BSR, or TRAPA. (When there are consecutive function calls in C language, the program steps all of these functions.) 17. Initializing the Internal I/O Register with the Reset_CPU Function Be sure to initialize the internal I/O registers shown below by the user program since they are not initialized by selecting [Debug] - [Reset CPU] or using the RESET command. Table 5.3 Registers Not Initialized
MCU Name H8/38704F Register Not Initialized SYSCR1, SYSCR2, IEGR, IENR2, IENR1, IRR1, IWPR, CKSTPR1, CKSTPR2
Rev. 1.00 Aug. 03, 2009 Page 21 of 22 REJ10J2023-0100
Section 5 Differences between the MCU (H8/38704F) and the Emulator
Rev. 1.00 Aug. 03, 2009 Page 22 of 22 REJ10J2023-0100
E8a Emulator Additional Document for User's Manual Notes on Connecting the H8/300H Super Low Power Series
Publication Date: Rev.1.00, August 3, 2009 Published by: Sales Strategic Planning Div. Renesas Technology Corp. Edited by: Customer Support Department Global Strategic Communication Div. Renesas Solutions Corp.
(c)2009. Renesas Technology Corp., All rights reserved. Printed in Japan.
Sales Strategic Planning Div.
Nippon Bldg., 2-6-2, Ohte-machi, Chiyoda-ku, Tokyo 100-0004, Japan
RENESAS SALES OFFICES
Refer to "http://www.renesas.com/en/network" for the latest and detailed information. Renesas Technology America, Inc. 450 Holger Way, San Jose, CA 95134-1368, U.S.A Tel: <1> (408) 382-7500, Fax: <1> (408) 382-7501 Renesas Technology Europe Limited Dukes Meadow, Millboard Road, Bourne End, Buckinghamshire, SL8 5FH, U.K. Tel: <44> (1628) 585-100, Fax: <44> (1628) 585-900 Renesas Technology (Shanghai) Co., Ltd. Unit 204, 205, AZIACenter, No.1233 Lujiazui Ring Rd, Pudong District, Shanghai, China 200120 Tel: <86> (21) 5877-1818, Fax: <86> (21) 6887-7858/7898 Renesas Technology Hong Kong Ltd. 7th Floor, North Tower, World Finance Centre, Harbour City, Canton Road, Tsimshatsui, Kowloon, Hong Kong Tel: <852> 2265-6688, Fax: <852> 2377-3473 Renesas Technology Taiwan Co., Ltd. 10th Floor, No.99, Fushing North Road, Taipei, Taiwan Tel: <886> (2) 2715-2888, Fax: <886> (2) 3518-3399 Renesas Technology Singapore Pte. Ltd. 1 Harbour Front Avenue, #06-10, Keppel Bay Tower, Singapore 098632 Tel: <65> 6213-0200, Fax: <65> 6278-8001 Renesas Technology Korea Co., Ltd. Kukje Center Bldg. 18th Fl., 191, 2-ka, Hangang-ro, Yongsan-ku, Seoul 140-702, Korea Tel: <82> (2) 796-3115, Fax: <82> (2) 796-2145
http://www.renesas.com
Renesas Technology Malaysia Sdn. Bhd Unit 906, Block B, Menara Amcorp, Amcorp Trade Centre, No.18, Jln Persiaran Barat, 46050 Petaling Jaya, Selangor Darul Ehsan, Malaysia Tel: <603> 7955-9390, Fax: <603> 7955-9510
Colophon 6.2
E8a Emulator Additional Document for User's Manual Notes on Connecting the H8/300H Super Low Power Series


▲Up To Search▲   

 
Price & Availability of R0E00008AKCE00EP63

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X